fix(auth): Fix ssh authentication
Signed-off-by: Yves Galante <yyvess@gmail.com>
This commit is contained in:
parent
e8305c895f
commit
28b8f36746
2
main.go
2
main.go
|
|
@ -572,7 +572,7 @@ func main() {
|
||||||
if *flUsername == "" {
|
if *flUsername == "" {
|
||||||
// username and user@host URLs are validated as mutually exclusive
|
// 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, 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 != "" {
|
if user := u.User.Username(); user != "" {
|
||||||
*flUsername = user
|
*flUsername = user
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue