X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=git-lost-found.sh;h=2beec2aa635d2876482294a162923a1dfd1572f6;hb=d3bfdb755e06c04492ad3977e7df3d780b6e02f2;hp=3892f52005d1e36676681806a87ef35dc0689f22;hpb=b6ebac9e4316cd5d35c2c24f83f1eb51ce17beb9;p=git.git diff --git a/git-lost-found.sh b/git-lost-found.sh index 3892f520..2beec2aa 100755 --- a/git-lost-found.sh +++ b/git-lost-found.sh @@ -1,7 +1,6 @@ #!/bin/sh -. git-sh-setup || die "Not a git archive." - +GIT_DIR=`git-rev-parse --git-dir` || exit $? laf="$GIT_DIR/lost-found" rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit