X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-lost-found.sh;h=9dd7430018f4bfb76c29e77e7fb9365acaa3bd9b;hb=4518bb88392fcd44bacae640754e7326a8fdf477;hp=3892f52005d1e36676681806a87ef35dc0689f22;hpb=0086e2c854e3af3209915e4ec2f933bcef400050;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