]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
transport: respect verbosity when setting upstream
authorØystein Walle <oystwa@gmail.com>
Thu, 15 Apr 2021 12:33:53 +0000 (14:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Apr 2021 19:52:49 +0000 (12:52 -0700)
commitf3cce896a8e14e4732f45a6ee46f77e7ed17a990
tree6a9bc83a62fc730c80962f97690c6cd4854fbd16
parent48bf2fa8bad054d66bd79c6ba903c89c704201f7
transport: respect verbosity when setting upstream

A command such as `git push -qu origin feature` will print "Branch
'feature' set up to track remote branch 'feature' from 'origin'." even
when --quiet is passed. In this case it's because install_branch_config() is
always called with BRANCH_CONFIG_VERBOSE.

struct transport keeps track of the desired verbosity. Fix the above
issue by passing BRANCH_CONFIG_VERBOSE conditionally based on that.

Signed-off-by: Øystein Walle <oystwa@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5523-push-upstream.sh
transport.c