If --repo is not a URL, it's not an error
This commit is contained in:
parent
fc5e065878
commit
6426efe346
3
main.go
3
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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue