summaryrefslogtreecommitdiff
path: root/git-lost-found.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-30 19:09:33 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-30 19:09:33 (GMT)
commit9cac9d368934f68e75810df95211a6522d4d139e (patch)
tree6587296cef3998501dd38886d20e80cfd84342ff /git-lost-found.sh
parent5401f3040b61e11da79d676e42aacfa9f1131083 (diff)
parent99e01692063cc48adee19e1f738472a579c14ca2 (diff)
downloadgit-9cac9d368934f68e75810df95211a6522d4d139e.zip
git-9cac9d368934f68e75810df95211a6522d4d139e.tar.gz
git-9cac9d368934f68e75810df95211a6522d4d139e.tar.bz2
Merge branch 'jc/subdir'
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