Skip to content

Commit b8b62e9

Browse files
committed
fix(auth): Fix ssh authentication
1 parent e8305c8 commit b8b62e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ func main() {
572572
if *flUsername == "" {
573573
// username and user@host URLs are validated as mutually exclusive
574574
if u, err := url.Parse(*flRepo); err == nil { // it may not even parse as a URL, that's OK
575-
if u.User != nil {
575+
if u.User != nil && u.Scheme != "ssh" {
576576
if user := u.User.Username(); user != "" {
577577
*flUsername = user
578578
}

0 commit comments

Comments
 (0)