rebase: one safety net, one bugfix and one optimization.
[gitweb.git] / git-prune.sh
index aa798073136b3512215f51fec5709e551d38ad30..1fd8c731cdd3651e3cd3c527915db7a4c4324be0 100755 (executable)
@@ -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