From d3320acbfcfbbf039ff794581fd820b426ac5589 Mon Sep 17 00:00:00 2001 From: Martin Cooper Date: Fri, 30 Mar 2012 22:07:00 -0700 Subject: Don't die on an empty repo url. Fixes #2313. --- lib/bugs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bugs.js') 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://") -- cgit v1.2.3