Skip to content
Browse files

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

  • Loading branch information...
1 parent 0f392b3 commit 96f3efc0cd6635e733bf2f064adf2f353295d65e @substack committed Feb 4, 2013
Showing with 5 additions and 2 deletions.
  1. +4 −1 lib/service.js
  2. +1 −1 package.json
View
5 lib/service.js
@@ -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
2 package.json
@@ -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.
Something went wrong with that request. Please try again.