Add compat/setenv.c, use in git.c.
[gitweb.git] / git-lost-found.sh
index 9dd7430018f4bfb76c29e77e7fb9365acaa3bd9b..2beec2aa635d2876482294a162923a1dfd1572f6 100755 (executable)
@@ -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