diff options
author | Martin Cooper <mfncooper@gmail.com> | 2012-03-31 09:07:00 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-31 21:58:02 +0400 |
commit | d3320acbfcfbbf039ff794581fd820b426ac5589 (patch) | |
tree | 8e289f0992a6587488a7564b40f50ecb4a7c785a /lib/bugs.js | |
parent | ef34f5bcdb04ff12b817b7a14bc1127361aa14e0 (diff) |
Don't die on an empty repo url. Fixes #2313.
Diffstat (limited to 'lib/bugs.js')
-rw-r--r-- | lib/bugs.js | 2 |
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://") |