summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2024-06-29 18:08:17 +1000
committerJesse Duffield <jessedduffield@gmail.com>2024-06-29 18:08:17 +1000
commita8edf269f11a642c42b595a2f171b09bbb741fb6 (patch)
treeb530341f112df28c3f3b2d4338cab9163660690a /pkg
parentbcb70119bbb4b48a60fbe0786e026e50acc52cdf (diff)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/commands/git_commands/github.go4
1 files changed, 4 insertions, 0 deletions
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