We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a406c7 commit b089ccbCopy full SHA for b089ccb
submodule.go
@@ -20,7 +20,7 @@ var (
20
ErrSubmoduleNotInitialized = errors.New("submodule not initialized")
21
22
// gitSubmoduleSSHRegex matches a submodule repository that connects over ssh
23
- gitSubmoduleSSHRegex = regexp.MustCompile(`^\"?(ssh://)?[A-Za-z_]+@[a-zA-Z0-9._-]+:[a-zA-Z0-9./._-]+\/.*\"?$`)
+ gitSubmoduleSSHRegex = regexp.MustCompile(`^\"?(?:ssh|git@[-\w.]+):(\/\/)?(.*?)(\.git)\"?$`)
24
)
25
26
// Submodule a submodule allows you to keep another Git repository in a
0 commit comments