Przeglądaj źródła

Make dul-daemon start once more :)

John Carr 16 lat temu
rodzic
commit
ea84707254
2 zmienionych plików z 4 dodań i 3 usunięć
  1. 1 0
      bin/dul-daemon
  2. 3 3
      dulwich/server.py

+ 1 - 0
bin/dul-daemon

@@ -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__":

+ 3 - 3
dulwich/server.py

@@ -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)