diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2024-06-29 18:08:17 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2024-06-29 18:08:17 +1000 |
commit | a8edf269f11a642c42b595a2f171b09bbb741fb6 (patch) | |
tree | b530341f112df28c3f3b2d4338cab9163660690a /pkg/commands/git_commands/github.go | |
parent | bcb70119bbb4b48a60fbe0786e026e50acc52cdf (diff) |
Diffstat (limited to 'pkg/commands/git_commands/github.go')
-rw-r--r-- | pkg/commands/git_commands/github.go | 4 |
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 |