Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 96f3efc0cd6635e733bf2f064adf2f353295d65e 1 parent 0f392b3
James Halliday authored February 04, 2013
5  lib/service.js
@@ -12,7 +12,10 @@ module.exports = function (opts, req, res) {
12 12
 };
13 13
 
14 14
 var headerRE = {
15  
-    'receive-pack' : '([0-9a-fA-F]+) ([0-9a-fA-F]+) refs\/(heads|tags)\/(.*?)( |00|\u0000)',
  15
+    'receive-pack' : '([0-9a-fA-F]+) ([0-9a-fA-F]+)'
  16
+        + ' refs\/(heads|tags)\/(.*?)( |00|\u0000)'
  17
+        + '|^(0000)$'
  18
+    ,
16 19
     'upload-pack' : '^\\S+ ([0-9a-fA-F]+)'
17 20
 };
18 21
 
2  package.json
... ...
@@ -1,7 +1,7 @@
1 1
 {
2 2
     "name" : "pushover",
3 3
     "description" : "git push deploy server over http",
4  
-    "version" : "1.2.0",
  4
+    "version" : "1.2.1",
5 5
     "repository" : {
6 6
         "type" : "git",
7 7
         "url" : "git://github.com/substack/pushover.git"

0 notes on commit 96f3efc

Please sign in to comment.
Something went wrong with that request. Please try again.