Skip to content

Commit c7199e3

Browse files
kcghostgitster
authored andcommitted
submodule: clean up substitutions in script
'recommend_shallow' and 'jobs' variables do not need quotes. They only hold a single token value, and even if they were multi-token it is likely we would want them split at IFS rather than pass a single string. 'progress' is a boolean value. Treat it like the other boolean values in the script by using a substitution. Signed-off-by: Casey Fitzpatrick <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 468165c commit c7199e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

git-submodule.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ cmd_update()
465465
GIT_QUIET=1
466466
;;
467467
--progress)
468-
progress="--progress"
468+
progress=1
469469
;;
470470
-i|--init)
471471
init=1
@@ -542,14 +542,14 @@ cmd_update()
542542

543543
{
544544
git submodule--helper update-clone ${GIT_QUIET:+--quiet} \
545-
${progress:+"$progress"} \
545+
${progress:+"--progress"} \
546546
${wt_prefix:+--prefix "$wt_prefix"} \
547547
${prefix:+--recursive-prefix "$prefix"} \
548548
${update:+--update "$update"} \
549549
${reference:+"$reference"} \
550550
${depth:+--depth "$depth"} \
551-
${recommend_shallow:+"$recommend_shallow"} \
552-
${jobs:+$jobs} \
551+
$recommend_shallow \
552+
$jobs \
553553
"$@" || echo "#unmatched" $?
554554
} | {
555555
err=

0 commit comments

Comments
 (0)