def main(argv=sys.argv):
    if len(argv) > 1:
        gitdir = argv[1]
    else:
        gitdir = '.'

    log_utils.default_logging_config()
    backend = DictBackend({'/': Repo(gitdir)})
    server = TCPGitServer(backend, 'localhost')
    server.serve_forever()
Entry point for starting a TCP git server.
dataset/ETHPy150Open natestedman/Observatory/observatory/lib/dulwich/server.py/main