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 {
|
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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue