From: Junio C Hamano Date: Mon, 28 Nov 2005 07:18:04 +0000 (-0800) Subject: lost-found: make it operable from a subdirectory. X-Git-Tag: v0.99.9l^2~23^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=eefaa4fca79f5240eaefd0046a338dbdac8b4204;p=git.git lost-found: make it operable from a subdirectory. Signed-off-by: Junio C Hamano --- diff --git a/git-lost-found.sh b/git-lost-found.sh index 9dd74300..2beec2aa 100755 --- a/git-lost-found.sh +++ b/git-lost-found.sh @@ -1,7 +1,6 @@ #!/bin/sh -. git-sh-setup - +GIT_DIR=`git-rev-parse --git-dir` || exit $? laf="$GIT_DIR/lost-found" rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit