We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f857e5 commit 442d3b4Copy full SHA for 442d3b4
1 file changed
client/pkg/git/git.go
@@ -93,6 +93,9 @@ func findRemote(host string) (string, error) {
93
94
cmd := string(out)
95
96
+ // Strip off any trailing :port number after the host name.
97
+ host = strings.Split(host, ":")[0]
98
+
99
for _, line := range strings.Split(cmd, "\n") {
100
for _, remote := range strings.Split(line, " ") {
101
if strings.Contains(remote, host) {
0 commit comments