diff --git a/pkg/commands/git_commands/github.go b/pkg/commands/git_commands/github.go index ddce8304a..d3d829951 100644 --- a/pkg/commands/git_commands/github.go +++ b/pkg/commands/git_commands/github.go @@ -287,6 +287,10 @@ func getRemotesToOwnersMap(remotes []*models.Remote) map[string]string { continue } + if !strings.Contains(remote.Urls[0], ":") { + continue + } + res[remote.Name] = getRepoInfoFromURL(remote.Urls[0]).Owner } return res