Skip to content

Commit d47c5a8

Browse files
authored
Merge pull request #285 from n-peugnet/go-import-trim-suffix
2 parents 0cbf0f0 + 04e6e89 commit d47c5a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func findGitHubOwnerRepo(gopkg string) (string, error) {
112112
return ""
113113
}
114114
if repoMatch := githubRegexp.FindStringSubmatch(f[2]); repoMatch != nil {
115-
return repoMatch[1]
115+
return strings.TrimSuffix(repoMatch[1], ".git")
116116
}
117117
}
118118
return ""

0 commit comments

Comments
 (0)