remove comment

This commit is contained in:
Brian Camacho 2023-05-03 01:05:00 -07:00
parent 71140c0929
commit 7a90e9164e

@ -157,7 +157,6 @@ func parseFetchHead(filePath string) (string, error) {
func ExtractRemoteUrl(line string) (string, error) {
re := regexp.MustCompile(`of (https://|ssh://)?(.*)`)
//re := regexp.MustCompile(`((?:\w+@)?[\w.-]+:(?:[\w\-./]+)|https?://[\w.-]+(?:/[\w\-./]+)?|ssh://[\w.-]+(?:/[\w\-./]+)?)`)
match := re.FindStringSubmatch(line)
if len(match) != 3 {
@ -203,7 +202,8 @@ func ExtractRemoteUrl(line string) (string, error) {
remoteUrl += ".git"
if p == Ssh {
remoteUrl = "git@" + remoteUrl
} else {
}
if p == Https {
remoteUrl = "https://" + remoteUrl
}