]> git.ipfire.org Git - thirdparty/git.git/commit
bundle-uri: suppress stderr from remote-https
authorDerrick Stolee <derrickstolee@github.com>
Wed, 12 Oct 2022 12:52:39 +0000 (12:52 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Oct 2022 16:13:25 +0000 (09:13 -0700)
commit8628a842bddda7723ad7548b7f6d141123a164a0
treee313d40ee9fc1d2ba74cbb661609ea389f5ef799
parent70334fc3ebf1c6199014d82bbbf0595b64a8fa90
bundle-uri: suppress stderr from remote-https

When downloading bundles from a git-remote-https subprocess, the bundle
URI logic wants to be opportunistic and download as much as possible and
work with what did succeed. This is particularly important in the "any"
mode, where any single bundle success will work.

If the URI is not available, the git-remote-https process will die()
with a "fatal:" error message, even though that error is not actually
fatal to the super process. Since stderr is passed through, it looks
like a fatal error to the user.

Suppress stderr to avoid these errors from bubbling to the surface. The
bundle URI API adds its own warning() messages on these failures.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle-uri.c
t/t5558-clone-bundle-uri.sh