Changeset 2d93cd9edad2…
Parent 3f41713512ac…
by
Changes to one file · Browse files at 2d93cd9edad2 Showing diff from parent 3f41713512ac Diff from another changeset...
@@ -69,7 +69,12 @@ } else {
if strings.HasPrefix(s, "ssh://") {
components := strings.SplitN(strings.TrimPrefix(s, "ssh://"), "/", 2)
- domain, rest := components[0], components[1]
+ fullDomain := strings.Split(components[0], "@")
+ domain := fullDomain[len(fullDomain)-1]
+ rest := ""
+ if len(components) > 1 {
+ rest = components[1]
+ }
if strings.HasSuffix(domain, ".kilnhg.com") {
s = "https://" + domain + "/Code/" + rest + ".git"
}
|
Loading...