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:
authorMartin Cooper <mfncooper@gmail.com>2012-03-31 09:07:00 +0400
committerisaacs <i@izs.me>2012-03-31 21:58:02 +0400
commitd3320acbfcfbbf039ff794581fd820b426ac5589 (patch)
tree8e289f0992a6587488a7564b40f50ecb4a7c785a /lib/bugs.js
parentef34f5bcdb04ff12b817b7a14bc1127361aa14e0 (diff)
Don't die on an empty repo url. Fixes #2313.
Diffstat (limited to 'lib/bugs.js')
-rw-r--r--lib/bugs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bugs.js b/lib/bugs.js
index a3a017cc0..7982746cf 100644
--- a/lib/bugs.js
+++ b/lib/bugs.js
@@ -28,7 +28,7 @@ function bugs (args, cb) {
}
if (repo) {
if (Array.isArray(repo)) repo = repo.shift()
- if (repo.url) repo = repo.url
+ if (repo.hasOwnProperty("url")) repo = repo.url
log.verbose(repo, "repository")
if (repo && repo.match(/^(https?:\/\/|git(:\/\/|@))github.com/)) {
return open(repo.replace(/^git(@|:\/\/)/, "http://")