Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Make git-mv work in subdirectories, too
[gitweb.git]
/
git-lost-found.sh
diff --git
a/git-lost-found.sh
b/git-lost-found.sh
index 3892f52005d1e36676681806a87ef35dc0689f22..9dd7430018f4bfb76c29e77e7fb9365acaa3bd9b 100755
(executable)
--- a/
git-lost-found.sh
+++ b/
git-lost-found.sh
@@
-1,6
+1,6
@@
#!/bin/sh
-. git-sh-setup
|| die "Not a git archive."
+. git-sh-setup
laf="$GIT_DIR/lost-found"
rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit