Skip to content

Commit 425a4c7

Browse files
committed
Merge branch 'mm/pull-upload-pack' into maint
"git pull" in recent releases of Git has a regression in the code that allows custom path to the --upload-pack=<program>. This has been corrected. Note that this is irrelevant for 'master' with "git pull" rewritten in C. * mm/pull-upload-pack: pull: pass upload_pack only when it was given pull.sh: quote $upload_pack when passing it to git-fetch
2 parents 552a736 + 13e0e28 commit 425a4c7

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)