Permalink
Browse files

fix for some repos that just send 0000 on push-receive for some reason

  • Loading branch information...
substack committed Feb 5, 2013
1 parent 0f392b3 commit 96f3efc0cd6635e733bf2f064adf2f353295d65e
Showing with 5 additions and 2 deletions.
  1. +4 −1 lib/service.js
  2. +1 −1 package.json
View
@@ -12,7 +12,10 @@ module.exports = function (opts, req, res) {
};
var headerRE = {
- 'receive-pack' : '([0-9a-fA-F]+) ([0-9a-fA-F]+) refs\/(heads|tags)\/(.*?)( |00|\u0000)',
+ 'receive-pack' : '([0-9a-fA-F]+) ([0-9a-fA-F]+)'
+ + ' refs\/(heads|tags)\/(.*?)( |00|\u0000)'
+ + '|^(0000)$'
+ ,
'upload-pack' : '^\\S+ ([0-9a-fA-F]+)'
};
View
@@ -1,7 +1,7 @@
{
"name" : "pushover",
"description" : "git push deploy server over http",
- "version" : "1.2.0",
+ "version" : "1.2.1",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/pushover.git"

0 comments on commit 96f3efc

Please sign in to comment.