X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-lost-found.sh;h=9dd7430018f4bfb76c29e77e7fb9365acaa3bd9b;hb=069b20a198f171512a1d2d2163b40f70c94f5257;hp=3892f52005d1e36676681806a87ef35dc0689f22;hpb=8fc66df237afce0b4318657f166b3583831949f3;p=git.git diff --git a/git-lost-found.sh b/git-lost-found.sh index 3892f520..9dd74300 100755 --- 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