Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
test-lib.sh: Add new function, test_expect_code
[gitweb.git]
/
git-prune.sh
diff --git
a/git-prune.sh
b/git-prune.sh
index aa798073136b3512215f51fec5709e551d38ad30..1fd8c731cdd3651e3cd3c527915db7a4c4324be0 100755
(executable)
--- 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