Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mm/pull-upload-pack' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 25 Aug 2015 23:09:15 +0000
(16:09 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 25 Aug 2015 23:09:15 +0000
(16:09 -0700)
"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
git-pull.sh
patch
|
blob
|
history
raw
(from parent 1:
552a736
)
diff --git
a/git-pull.sh
b/git-pull.sh
index a814bf61aa9a4a0fa92acc90b937dc83ff1995b3..e8dc2e0e7d5d8fb37f818a05c3ef4c58f28850da 100755
(executable)
--- a/
git-pull.sh
+++ b/
git-pull.sh
@@
-295,7
+295,7
@@
test true = "$rebase" && {
}
orig_head=$(git rev-parse -q --verify HEAD)
git fetch $verbosity $progress $dry_run $recurse_submodules $all $append \
-$
upload_pack
$force $tags $prune $keep $depth $unshallow $update_shallow \
+$
{upload_pack:+"$upload_pack"}
$force $tags $prune $keep $depth $unshallow $update_shallow \
$refmap --update-head-ok "$@" || exit 1
test -z "$dry_run" || exit 0