From 214338383bc0c143f14e8949b5a39f72b955fd9a 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 bc3fb7599..27dbb29d6 100644 --- a/main.go +++ b/main.go @@ -914,7 +914,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 {