git-lost-found: Usage string clean-up, emit usage string at incorrect invocation

Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
freku045@student.liu.se 2005-12-13 23:30:31 +01:00 committed by Junio C Hamano
parent 87358b7a19
commit d20e2f161b

View File

@ -1,6 +1,14 @@
#!/bin/sh #!/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" laf="$GIT_DIR/lost-found"
rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit