Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-05-27 05:06:03 +0400
committerisaacs <i@izs.me>2012-05-27 05:06:03 +0400
commitca155830738c139ca7b607f765f64ff0ee0dadda (patch)
tree4c13e460ff48ce7f96459ac2a8983089e7ca505c
parent5f5db67f6808b1f587243487e717752736d0b86a (diff)
Fix #2453: ssh is not always the default git transport
-rw-r--r--lib/cache.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/cache.js b/lib/cache.js
index b62e82dd1..706d7f883 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -298,7 +298,6 @@ function addRemoteGit (u, parsed, name, cb_) {
var co = parsed.hash && parsed.hash.substr(1) || "master"
u = u.replace(/^git\+/, "")
.replace(/#.*$/, "")
- .replace(/^ssh:\/\//, "") // ssh is the default anyway
log.verbose([u, co], "addRemoteGit")
var tmp = path.join(npm.tmp, Date.now()+"-"+Math.random())