From 3a021a5bfcc6225c5f3c1d005726fa3d4dff6321 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 26 Nov 2018 22:04:51 -0700 Subject: don't echo external command errors unless repo ID is set Otherwise you'll get the error output whenever you push to a new remote. Signed-off-by: Sean Whitton --- git-remote-gcrypt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git-remote-gcrypt b/git-remote-gcrypt index c78f28b..dcdec75 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -531,12 +531,13 @@ ensure_connected() tmp_manifest="$Tempdir/maniF" 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 + cat >&2 "$tmp_stderr" + echo_info "Repository not found: $URL" echo_info "..but repository ID is set. Aborting." return 1 else + echo_info "Repository not found: $URL" return 0 fi } -- cgit v1.2.3