diff options
author | Derrick Stolee <derrickstolee@github.com> | 2022-10-12 12:52:39 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-12 09:13:25 -0700 |
commit | 8628a842bddda7723ad7548b7f6d141123a164a0 (patch) | |
tree | e313d40ee9fc1d2ba74cbb661609ea389f5ef799 /bundle-uri.c | |
parent | 70334fc3ebf1c6199014d82bbbf0595b64a8fa90 (diff) | |
download | git-8628a842bddda7723ad7548b7f6d141123a164a0.tar.gz |
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>
Diffstat (limited to 'bundle-uri.c')
-rw-r--r-- | bundle-uri.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bundle-uri.c b/bundle-uri.c index d872acf5ab..79a914f961 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -230,6 +230,7 @@ static int download_https_uri_to_file(const char *file, const char *uri) int found_get = 0; strvec_pushl(&cp.args, "git-remote-https", uri, NULL); + cp.err = -1; cp.in = -1; cp.out = -1; |