@@ -825,25 +825,37 @@ func TestResolveSubmoduleURL(t *testing.T) {
825825 name : "scpRelativeSibling" ,
826826 parentURL : "git@github.com:org/main.git" ,
827827 subURL : "../deps/lib.git" ,
828- expect : "ssh:// git@github.com/ org/deps/lib.git" ,
828+ expect : "git@github.com: org/deps/lib.git" ,
829829 },
830830 {
831831 name : "scpRelativeChild" ,
832832 parentURL : "git@github.com:org/main.git" ,
833833 subURL : "./extras/tool.git" ,
834- expect : "ssh:// git@github.com/ org/main.git/extras/tool.git" ,
834+ expect : "git@github.com: org/main.git/extras/tool.git" ,
835835 },
836836 {
837837 name : "scpMultiLevelUp" ,
838838 parentURL : "git@github.com:a/b/c/repo.git" ,
839839 subURL : "../../other/lib.git" ,
840- expect : "ssh:// git@github.com/ a/b/other/lib.git" ,
840+ expect : "git@github.com: a/b/other/lib.git" ,
841841 },
842842 {
843843 name : "scpWithPort" ,
844844 parentURL : "git@github.com:2222:org/main.git" ,
845845 subURL : "../deps/lib.git" ,
846- expect : "ssh://git@github.com:2222/org/deps/lib.git" ,
846+ expect : "git@github.com:2222:org/deps/lib.git" ,
847+ },
848+ {
849+ name : "scpNoUserRelativeSibling" ,
850+ parentURL : "github.com:org/main.git" ,
851+ subURL : "../deps/lib.git" ,
852+ expect : "github.com:org/deps/lib.git" ,
853+ },
854+ {
855+ name : "scpIPAddressRelativeSibling" ,
856+ parentURL : "deploy@192.168.1.50:repos/main.git" ,
857+ subURL : "../deps/lib.git" ,
858+ expect : "deploy@192.168.1.50:repos/deps/lib.git" ,
847859 },
848860 {
849861 name : "httpsMultiLevelUp" ,
0 commit comments