summaryrefslogtreecommitdiff
path: root/git-lost-found.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-28 07:18:04 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-29 07:13:03 (GMT)
commiteefaa4fca79f5240eaefd0046a338dbdac8b4204 (patch)
treef1646bd84a650afb3e7add0bf91b3f16e1b1efaf /git-lost-found.sh
parent9cc2527cd2943c82cf448dccec564869b0a762e6 (diff)
downloadgit-eefaa4fca79f5240eaefd0046a338dbdac8b4204.zip
git-eefaa4fca79f5240eaefd0046a338dbdac8b4204.tar.gz
git-eefaa4fca79f5240eaefd0046a338dbdac8b4204.tar.bz2
lost-found: make it operable from a subdirectory.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-lost-found.sh')
-rwxr-xr-xgit-lost-found.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-lost-found.sh b/git-lost-found.sh
index 9dd7430..2beec2a 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