Skip to content

Commit

Permalink
fix(auth): Fix ssh authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
YvesZelros committed Apr 4, 2024
1 parent e8305c8 commit b8b62e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func main() {
if *flUsername == "" {
// username and user@host URLs are validated as mutually exclusive
if u, err := url.Parse(*flRepo); err == nil { // it may not even parse as a URL, that's OK
if u.User != nil {
if u.User != nil && u.Scheme != "ssh" {
if user := u.User.Username(); user != "" {
*flUsername = user
}
Expand Down

0 comments on commit b8b62e9

Please sign in to comment.