Kiln » gitkiln Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

improve SSH path inference

Changeset 2d93cd9edad2

Parent 3f41713512ac

by Benjamin Pollack

Changes to one file · Browse files at 2d93cd9edad2 Showing diff from parent 3f41713512ac Diff from another changeset...

Change 1 of 1 Show Entire File main.go Stacked
 
69
70
71
72
 
 
 
 
 
 
73
74
75
 
69
70
71
 
72
73
74
75
76
77
78
79
80
@@ -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"   }