If --repo is not a URL, it's not an error

This commit is contained in:
Tim Hockin 2023-10-11 09:23:40 -07:00
parent fc5e065878
commit 6426efe346
1 changed files with 2 additions and 1 deletions

View File

@ -1271,7 +1271,8 @@ const redactedString = "REDACTED"
func redactURL(urlstr string) string { func redactURL(urlstr string) string {
u, err := url.Parse(urlstr) u, err := url.Parse(urlstr)
if err != nil { if err != nil {
return err.Error() // May be something like user@git.example.com:path/to/repo
return urlstr
} }
if u.User != nil { if u.User != nil {
if _, found := u.User.Password(); found { if _, found := u.User.Password(); found {