Changeset 3f41713512ac…
Parent 80b4194d51bf…
by
Changes to one file · Browse files at 3f41713512ac Showing diff from parent 80b4194d51bf Diff from another changeset...
@@ -67,6 +67,13 @@ if err == nil && len(out) > 0 {
base, err = url.Parse(strings.TrimSpace(string(out)))
} else {
+ if strings.HasPrefix(s, "ssh://") {
+ components := strings.SplitN(strings.TrimPrefix(s, "ssh://"), "/", 2)
+ domain, rest := components[0], components[1]
+ if strings.HasSuffix(domain, ".kilnhg.com") {
+ s = "https://" + domain + "/Code/" + rest + ".git"
+ }
+ }
base, err = url.Parse(s)
if err != nil || (base.Scheme != "http" && base.Scheme != "https") {
err = fmt.Errorf("must either have an HTTP remote or kiln.url specified in config")
|
Loading...