From 6426efe3462c5399a9ae5d170f2a9023ce35062d Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 11 Oct 2023 09:23:40 -0700 Subject: [PATCH] If --repo is not a URL, it's not an error --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c149702..2129474 100644 --- a/main.go +++ b/main.go @@ -1271,7 +1271,8 @@ const redactedString = "REDACTED" func redactURL(urlstr string) string { u, err := url.Parse(urlstr) if err != nil { - return err.Error() + // May be something like user@git.example.com:path/to/repo + return urlstr } if u.User != nil { if _, found := u.User.Password(); found {