From 28b8f36746fca78b32103ec966a0dce2b4707c4b Mon Sep 17 00:00:00 2001 From: Yves Galante Date: Thu, 4 Apr 2024 17:15:15 +0200 Subject: [PATCH] fix(auth): Fix ssh authentication Signed-off-by: Yves Galante --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e4dd4ee..3af2ad3 100644 --- a/main.go +++ b/main.go @@ -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 }