Browse Source

Fix dul-daemon.

Jelmer Vernooij 15 years ago
parent
commit
1781fa9fb5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      bin/dul-daemon

+ 3 - 2
bin/dul-daemon

@@ -22,10 +22,11 @@ from dulwich.repo import Repo
 from dulwich.server import DictBackend, GitBackendRepo, TCPGitServer
 
 if __name__ == "__main__":
-    gitdir = None
     if len(sys.argv) > 1:
         gitdir = sys.argv[1]
+    else:
+        gitdir = "."
 
-	backend = DictBackend({"/": GitBackendRepo(Repo(gitdir))})
+    backend = DictBackend({"/": GitBackendRepo(Repo(gitdir))})
     server = TCPGitServer(backend, 'localhost')
     server.serve_forever()