]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
output stderr from other commands when the repository is not found
authorSean Whitton <spwhitton@spwhitton.name>
Fri, 23 Nov 2018 03:54:56 +0000 (20:54 -0700)
committerSean Whitton <spwhitton@spwhitton.name>
Sat, 24 Nov 2018 19:02:30 +0000 (12:02 -0700)
Closes: #914059
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
git-remote-gcrypt

index ba75f092662bf043e1dbd0179058039ddbf2df98..efd7e43deed68e8e2941904d072e7b7e8edb09f8 100755 (executable)
@@ -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."