Make dul-daemon start once more :)
authorJohn Carr <john.carr@unrouted.co.uk>
Wed, 24 Dec 2008 23:51:08 +0000 (23:51 +0000)
committerJohn Carr <john.carr@unrouted.co.uk>
Wed, 24 Dec 2008 23:51:08 +0000 (23:51 +0000)
bin/dul-daemon
dulwich/server.py

index 3eea9505c5378f46813b230307667c1f349938c0..a9943b142f68331890f7e61fd12f81e9b6e6b387 100755 (executable)
@@ -17,6 +17,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA  02110-1301, USA.
 
+import sys
 from dulwich.server import GitBackend, TCPGitServer
 
 if __name__ == "__main__":
index 2b67727a8a817c4a514d6111372bb383c13e1f48..38a5fe48bf4684276b2ce1191d4a229f718a6792 100644 (file)
@@ -17,9 +17,9 @@
 # MA  02110-1301, USA.
 
 import SocketServer
-from dulwich.protocol import Protocol, TCP_GIT_PORT
+from dulwich.protocol import Protocol, TCP_GIT_PORT, extract_capabilities
 from dulwich.repo import Repo
-from dulwich.pack import PackData, Pack, write_pack_data, extract_capabilities
+from dulwich.pack import PackData, Pack, write_pack_data
 import os, sha, tempfile
 
 class Backend(object):
@@ -282,6 +282,6 @@ class TCPGitServer(SocketServer.TCPServer):
 
     def __init__(self, backend, listen_addr, port=TCP_GIT_PORT):
         self.backend = backend
-        SocketServer.TCPServer.__init__(self, addr, TCPGitRequestHandler)
+        SocketServer.TCPServer.__init__(self, (listen_addr, port), TCPGitRequestHandler)