Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for when there's no .git

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