diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-11-26 22:04:51 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-11-26 22:04:51 -0700 |
commit | 3a021a5bfcc6225c5f3c1d005726fa3d4dff6321 (patch) | |
tree | 51c97a1a021be6e639c332c42865ff680c98d377 | |
parent | efedb9967807dfbb0ddad34c649a8cfd577f75ce (diff) | |
download | git-remote-gcrypt-3a021a5bfcc6225c5f3c1d005726fa3d4dff6321.tar.gz |
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 <spwhitton@spwhitton.name>
-rwxr-xr-x | git-remote-gcrypt | 5 |
1 files 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 } |