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:
Diffstat (limited to 'lib/cache/add-remote-git.js')
-rw-r--r--lib/cache/add-remote-git.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cache/add-remote-git.js b/lib/cache/add-remote-git.js
index 4d58fd902..cecf9bb77 100644
--- a/lib/cache/add-remote-git.js
+++ b/lib/cache/add-remote-git.js
@@ -47,7 +47,7 @@ function addRemoteGit (uri, _cb) {
if (parsed) {
// normalize GitHub syntax to org/repo (for now)
var from
- if (parsed.type === 'github' && parsed.default === 'shortcut') {
+ if (parsed.type === 'github' && parsed.getDefaultRepresentation() === 'shortcut') {
from = parsed.path()
} else {
from = parsed.toString()
@@ -56,7 +56,7 @@ function addRemoteGit (uri, _cb) {
log.verbose('addRemoteGit', from, 'is a repository hosted by', parsed.type)
// prefer explicit URLs to pushing everything through shortcuts
- if (parsed.default !== 'shortcut') {
+ if (parsed.getDefaultRepresentation() !== 'shortcut') {
return tryClone(from, parsed.toString(), false, cb)
}