require a username for git over ssh
Signed-off-by: Alex Couture-Beil <alex@earthly.dev>v0.8
parent
b64f992917
commit
23af9dcb86
|
@ -207,7 +207,7 @@ const (
|
|||
gitProtocolUnknown
|
||||
)
|
||||
|
||||
var gitSSHRegex = regexp.MustCompile("^([a-z0-9]+@)?[^:]+:.*$")
|
||||
var gitSSHRegex = regexp.MustCompile("^[a-z0-9]+@[^:]+:.*$")
|
||||
|
||||
func getGitProtocol(remote string) (string, int) {
|
||||
prefixes := map[string]int{
|
||||
|
|
|
@ -19,7 +19,7 @@ type GitIdentifier struct {
|
|||
KnownSSHHosts string
|
||||
}
|
||||
|
||||
var gitSSHRegex = regexp.MustCompile("^([a-z0-9]+@)?[^:]+:.*$")
|
||||
var gitSSHRegex = regexp.MustCompile("^[a-z0-9]+@[^:]+:.*$")
|
||||
|
||||
func NewGitIdentifier(remoteURL string) (*GitIdentifier, error) {
|
||||
repo := GitIdentifier{}
|
||||
|
|
Loading…
Reference in New Issue