From: freku045@student.liu.se Date: Tue, 13 Dec 2005 22:30:31 +0000 (+0100) Subject: git-lost-found: Usage string clean-up, emit usage string at incorrect invocation X-Git-Tag: v0.99.9n^2~7^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d20e2f161b068c00e95c6deea7ada9487945e8b7;p=git.git git-lost-found: Usage string clean-up, emit usage string at incorrect invocation Signed-off-by: Fredrik Kuivinen Signed-off-by: Junio C Hamano --- diff --git a/git-lost-found.sh b/git-lost-found.sh index 2beec2aa6..ba6d587f3 100755 --- a/git-lost-found.sh +++ b/git-lost-found.sh @@ -1,6 +1,14 @@ #!/bin/sh -GIT_DIR=`git-rev-parse --git-dir` || exit $? +USAGE='' +SUBDIRECTORY_OK='Yes' +. git-sh-setup + +if [ "$#" != "0" ] +then + usage +fi + laf="$GIT_DIR/lost-found" rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit