We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e5f70b commit 1fe3713Copy full SHA for 1fe3713
pkg/git/repository.go
@@ -223,7 +223,11 @@ func repoName(u string) (string, error) {
223
}
224
parts := strings.Split(parsed.Path, "/")
225
if len(parts) < 3 {
226
- return "", fmt.Errorf("could not identify repository name: %s", u)
+ cleanedURL, err := CleanURL(u)
227
+ if err != nil {
228
+ return "", errors.New("failed to clean the URL when determining repository name")
229
+ }
230
+ return "", fmt.Errorf("could not identify repository name: %s", cleanedURL)
231
232
return strings.TrimSuffix(parts[len(parts)-1], ".git"), nil
233
0 commit comments