This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Prepend the git+ to git urls if not found in _resolved

Fix #5752
Fix #6013
  • Loading branch information...
isaacs committed Aug 21, 2014
1 parent e4e1223 commit 6c47201a7d071e8bf091b36933daf4199cc98e80
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/cache/add-remote-git.js
@@ -182,6 +182,10 @@ function archiveGitRemote (p, u, co, origUrl, cb) {
parsed.hash = stdout
resolved = url.format(parsed)
if (parsed.proto !== "git:") {
resolved = "git+" + resolved
}
// https://github.com/npm/npm/issues/3224
// node incorrectly sticks a / at the start of the path
// We know that the host won't change, so split and detect this

0 comments on commit 6c47201

Please sign in to comment.