mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
git-prune: quote possibly empty $dryrun as parameter to test
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user