Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
pull.sh: quote $upload_pack when passing it to git-fetch
author
Matthieu Moy
<Matthieu.Moy@imag.fr>
Thu, 30 Jul 2015 20:40:03 +0000
(22:40 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 30 Jul 2015 21:14:32 +0000
(14:14 -0700)
The previous code broke for example
git pull --upload-pack 'echo --foo'
Reported-by: Joey Hess <id@joeyh.name>
Fix-suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-pull.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e3b601d
)
diff --git
a/git-pull.sh
b/git-pull.sh
index a814bf61aa9a4a0fa92acc90b937dc83ff1995b3..26c5e9ff61477ae523a63b34dcefbc322212a0a7 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