Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for https urls

  • Loading branch information...
commit a3f61b1b8c333c57b4fa730b060cf92b5bd4807d 1 parent c827df6
James Halliday authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 bin/cmd.js
  2. +1 −1  package.json
4 bin/cmd.js
View
@@ -14,7 +14,9 @@ function remote (cb) {
if (err) return cb(err.stack)
if (stderr) return cb(stderr)
- var m = stdout.match(/git@github.com:(\S+)\.git/);
+ var m = stdout.match(
+ /(?:git@github\.com:|\/github\.com\/)(\S+)\.git/
+ );
if (!m) return cb('no github remote found');
cb(null, m[1]);
});
2  package.json
View
@@ -1,7 +1,7 @@
{
"name" : "travisify",
"description" : "add travis-ci hooks to github",
- "version" : "0.1.1",
+ "version" : "0.1.2",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/travisify.git"
Please sign in to comment.
Something went wrong with that request. Please try again.