From: Sean Whitton Date: Fri, 23 Nov 2018 03:54:56 +0000 (-0700) Subject: output stderr from other commands when the repository is not found X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=4e9134a8200772943809f077167f0ceef8472f7b;p=gamesguru%2Fgit-remote-gcrypt.git output stderr from other commands when the repository is not found Closes: #914059 Signed-off-by: Sean Whitton --- diff --git a/git-remote-gcrypt b/git-remote-gcrypt index ba75f09..efd7e43 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -492,7 +492,7 @@ read_config() ensure_connected() { local manifest_= r_repoid= r_name= url_frag= r_sigmatch= r_signers= \ - tmp_manifest= + tmp_manifest= tmp_stderr= if isnonnull "$Did_find_repo" then @@ -529,7 +529,9 @@ ensure_connected() tmp_manifest="$Tempdir/maniF" - GET "$URL" "$Manifestfile" "$tmp_manifest" 2>/dev/null || { + tmp_stderr="$Tempdir/stderr" + GET "$URL" "$Manifestfile" "$tmp_manifest" 2>| "$tmp_stderr" || { + cat >&2 "$tmp_stderr" echo_info "Repository not found: $URL" if ! isnull "$Repoid"; then echo_info "..but repository ID is set. Aborting."