removing some debugging from the git-http-backend core stuff
authorPaul J R <me@pjr.cc>
Thu, 25 Oct 2012 18:01:39 +0000 (05:01 +1100)
committerPaul J R <me@pjr.cc>
Thu, 25 Oct 2012 18:01:39 +0000 (05:01 +1100)
gwvpmini/gwvpmini_gitbackend.php

index 5fe188a..8ea3511 100644 (file)
@@ -335,7 +335,7 @@ function gwvpmini_callGitBackend($username, $repo)
                                if(isset($headers["Content-Length"])) {
                                        $cl = $headers["Content-Length"];
                                        while(strlen($from_client_data) < $cl) {
-                                               error_log("re-read ".strlen($from_client_data));
+                                               error_log("re-read ".strlen($from_client_data)." of $cl");
                                                $from_client_data .= fread($fh, $cl);
                                        }
                                } else  $from_client_data = fread($fh,8192);
@@ -350,6 +350,8 @@ function gwvpmini_callGitBackend($username, $repo)
                                        }
                                }
                                if($from_client_data !== false) {
+                                       
+                                       // push the data from the client straight to backend
                                        fwrite($pipes[0], $from_client_data);
                                        //fwrite($fp, $from_client_data);
                                }