Permalink
Browse files

plus git: and http:

  • Loading branch information...
1 parent 4a94e59 commit 75904490ecd8e65db508dfe056593c984b91cc69 @substack committed Jun 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/cmd.js
View
@@ -15,7 +15,7 @@ function remote (cb) {
if (stderr) return cb(stderr)
var m = stdout.match(
- /origin\s+(?:git@github\.com:|https:\/\/github\.com\/)(\S+)/
+ /origin\s+(?:git@github\.com:|(?:https?|git):\/\/github\.com\/)(\S+)/
);
if (!m) return cb('no github remote found');
cb(null, m[1].replace(/\.git$/, ''));

0 comments on commit 7590449

Please sign in to comment.