Skip to content

Commit

Permalink
If --repo is not a URL, it's not an error
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Oct 11, 2023
1 parent 065b6c9 commit 2143383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2143383

Please sign in to comment.