File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,7 @@ cmd_update()
440
440
GIT_QUIET=1
441
441
;;
442
442
-v)
443
- GIT_QUIET=0
443
+ unset GIT_QUIET
444
444
;;
445
445
--progress)
446
446
progress=1
@@ -614,13 +614,13 @@ cmd_update()
614
614
say_msg=" $( eval_gettext " Submodule path '\$ displaypath': checked out '\$ sha1'" ) "
615
615
;;
616
616
rebase)
617
- command=" git rebase"
617
+ command=" git rebase ${GIT_QUIET : +--quiet} "
618
618
die_msg=" $( eval_gettext " Unable to rebase '\$ sha1' in submodule path '\$ displaypath'" ) "
619
619
say_msg=" $( eval_gettext " Submodule path '\$ displaypath': rebased into '\$ sha1'" ) "
620
620
must_die_on_failure=yes
621
621
;;
622
622
merge)
623
- command=" git merge"
623
+ command=" git merge ${GIT_QUIET : +--quiet} "
624
624
die_msg=" $( eval_gettext " Unable to merge '\$ sha1' in submodule path '\$ displaypath'" ) "
625
625
say_msg=" $( eval_gettext " Submodule path '\$ displaypath': merged in '\$ sha1'" ) "
626
626
must_die_on_failure=yes
Original file line number Diff line number Diff line change @@ -1022,4 +1022,16 @@ test_expect_success 'git clone passes the parallel jobs config on to submodules'
1022
1022
rm -rf super4
1023
1023
'
1024
1024
1025
+ test_expect_success ' submodule update --quiet passes quietness to merge/rebase' '
1026
+ (cd super &&
1027
+ test_commit -C rebasing message &&
1028
+ git submodule update --rebase --quiet >out 2>err &&
1029
+ test_must_be_empty out &&
1030
+ test_must_be_empty err &&
1031
+ git submodule update --rebase -v >out 2>err &&
1032
+ test_file_not_empty out &&
1033
+ test_must_be_empty err
1034
+ )
1035
+ '
1036
+
1025
1037
test_done
You can’t perform that action at this time.
0 commit comments