X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-prune.sh;h=1fd8c731cdd3651e3cd3c527915db7a4c4324be0;hb=bf3e274873e56d7df25d60800c8d59a309e0d8c6;hp=aa798073136b3512215f51fec5709e551d38ad30;hpb=d7b1a1ddbece22c99d52ea45bdecefdb9f17a613;p=git.git diff --git a/git-prune.sh b/git-prune.sh index aa798073..1fd8c731 100755 --- a/git-prune.sh +++ b/git-prune.sh @@ -1,6 +1,6 @@ #!/bin/sh -. git-sh-setup || die "Not a git archive" +. git-sh-setup dryrun= echo= @@ -31,7 +31,7 @@ git-prune-packed $dryrun redundant=$(git-pack-redundant --all) if test "" != "$redundant" then - if test "" = $dryrun + if test "" = "$dryrun" then echo "$redundant" | xargs rm -f else