change git: to https:

This commit is contained in:
Kyle Fang
2014-08-22 10:10:26 +08:00
parent 1ffaf16249
commit a5600de8ca

View File

@@ -47,7 +47,8 @@ module.exports = function addRemoteGit (u, parsed, silent, cb_) {
// If the path is like ssh://foo:some/path then it works, but
// only if you remove the ssh://
var origUrl = u
u = u.replace(/^git\+/, "")
u = u.replace(/^git:/, "https:")
.replace(/^git\+/, "")
.replace(/#.*$/, "")
// ssh paths that are scp-style urls don't need the ssh://