Skip to content

Commit 22d6857

Browse files
moygitster
authored andcommitted
pull.sh: quote $upload_pack when passing it to git-fetch
The previous code broke for example git pull --upload-pack 'echo --foo' Reported-by: Joey Hess <[email protected]> Fix-suggested-by: Junio C Hamano <[email protected]> Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e3b601d commit 22d6857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-pull.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ test true = "$rebase" && {
295295
}
296296
orig_head=$(git rev-parse -q --verify HEAD)
297297
git fetch $verbosity $progress $dry_run $recurse_submodules $all $append \
298-
$upload_pack $force $tags $prune $keep $depth $unshallow $update_shallow \
298+
${upload_pack+"$upload_pack"} $force $tags $prune $keep $depth $unshallow $update_shallow \
299299
$refmap --update-head-ok "$@" || exit 1
300300
test -z "$dry_run" || exit 0
301301

0 commit comments

Comments
 (0)