Skip to content

Commit 13e0e28

Browse files
committed
pull: pass upload_pack only when it was given
The upload_pack shell variable is initialized to an empty string, so conditional expansion with ${upload_pack+"$upload_pack"} would not work very well. You need a colon there. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 22d6857 commit 13e0e28

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+"$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)