Permalink
Browse files

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>
  • Loading branch information...
1 parent 87358b7 commit d20e2f161b068c00e95c6deea7ada9487945e8b7 freku045@student.liu.se committed with Junio C Hamano Dec 13, 2005
Showing with 9 additions and 1 deletion.
  1. +9 −1 git-lost-found.sh
View
10 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

0 comments on commit d20e2f1

Please sign in to comment.