diff --git a/pkg/transformer/openshift/openshift.go b/pkg/transformer/openshift/openshift.go index b4793730..47b3000a 100644 --- a/pkg/transformer/openshift/openshift.go +++ b/pkg/transformer/openshift/openshift.go @@ -83,7 +83,13 @@ func getGitRemote(remote string) string { if err != nil { return "" } - return strings.TrimRight(string(out), "\n") + url := strings.TrimRight(string(out), "\n") + + if !strings.HasSuffix(url, ".git") { + url += ".git" + } + + return url } // getAbsBuildContext returns build context relative to project root dir