]> git.ipfire.org Git - thirdparty/git.git/commit
submodule update: silence underlying merge/rebase with "--quiet"
authorTheodore Dubois <tbodt@google.com>
Wed, 30 Sep 2020 19:50:53 +0000 (12:50 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Oct 2020 15:50:24 +0000 (08:50 -0700)
commit3ad0401e9e6d3e243a21a3f376e36453572dcf0d
tree0b03cdecf73c881cd7e53d2068b6de9f4b158981
parent47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc
submodule update: silence underlying merge/rebase with "--quiet"

Commands such as

    $ git pull --rebase --recurse-submodules --quiet

produce non-quiet output from the merge or rebase.  Pass the --quiet
option down when invoking "rebase" and "merge".

Also fix the parsing of git submodule update -v.

When e84c3cf3 (git-submodule.sh: accept verbose flag in cmd_update
to be non-quiet, 2018-08-14) taught "git submodule update" to take
"--quiet", it apparently did not know how ${GIT_QUIET:+--quiet}
works, and reviewers seem to have missed that setting the variable
to "0", rather than unsetting it, still results in "--quiet" being
passed to underlying commands.

Signed-off-by: Theodore Dubois <tbodt@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
t/t7406-submodule-update.sh