Skip to content

Commit

Permalink
Avoid unnecessary porcelain import.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Jul 29, 2017
1 parent 5ff6887 commit 7f02fa1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dulwich/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,9 +1068,10 @@ def main(argv=sys.argv):
gitdir = args[1]
else:
gitdir = '.'
from dulwich import porcelain
porcelain.daemon(gitdir, address=options.listen_address,
port=options.port)
# TODO(jelmer): Support git-daemon-export-ok and --export-all.
backend = FileSystemBackend(gitdir)
server = TCPGitServer(backend, options.listen_address, options.port)
server.serve_forever()


def serve_command(handler_cls, argv=sys.argv, backend=None, inf=sys.stdin,
Expand Down

0 comments on commit 7f02fa1

Please sign in to comment.