Skip to content

Commit

Permalink
Update incoming.js - bug with ".git" in repo name
Browse files Browse the repository at this point in the history
so... yeah... i'm going to be renaming my repo now because I can't figure out how to install a Node package locally.
  • Loading branch information
Alissa committed Sep 16, 2015
1 parent d7b55d3 commit 102b557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/incoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ exports.control = function(options) {

// remove .git from the repo string, since the hook will not have that address when it comes from github
// so instead of explaining that you shouldnt enter ".git", we just remove it here.
if (repoData.repository.url == deploy.repo.replace(".git", "")) {
if (repoData.repository.url == deploy.repo.replace(".git$", "")) {

var branch = repoData.ref.split("/").pop();

Expand Down

0 comments on commit 102b557

Please sign in to comment.