X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-lost-found.sh;h=9dd7430018f4bfb76c29e77e7fb9365acaa3bd9b;hb=706fe6ae03e2c1452d59892944701c56237b903f;hp=3892f52005d1e36676681806a87ef35dc0689f22;hpb=6d5410d65137dc76a504b550872614170e2d98b3;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