Permalink
Browse files

Fixed regex for https GitHub repos

  • Loading branch information...
1 parent 9a09c9b commit 4a94e599b0b474c3b53f3462d5b8fc3e66c1d15f @mhart mhart 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:|\/github\.com\/)(\S+)/
+ /origin\s+(?:git@github\.com:|https:\/\/github\.com\/)(\S+)/
);
if (!m) return cb('no github remote found');
cb(null, m[1].replace(/\.git$/, ''));

0 comments on commit 4a94e59

Please sign in to comment.