mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
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:
parent
87358b7a19
commit
d20e2f161b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user