Bladeren bron

Add committer - in case the user doesn't have a local configuration.

Jelmer Vernooij 13 jaren geleden
bovenliggende
commit
d9adcd03b7
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      docs/tutorial/remote.txt

+ 1 - 1
docs/tutorial/remote.txt

@@ -6,7 +6,7 @@ Most of the tests in this file require a Dulwich server, so let's start one:
     >>> from dulwich.server import DictBackend, TCPGitServer
     >>> from dulwich.server import DictBackend, TCPGitServer
     >>> import threading
     >>> import threading
     >>> repo = Repo.init("remote", mkdir=True)
     >>> repo = Repo.init("remote", mkdir=True)
-    >>> cid = repo.do_commit("message")
+    >>> cid = repo.do_commit("message", committer="Jelmer <jelmer@samba.org>")
     >>> backend = DictBackend({'/': repo})
     >>> backend = DictBackend({'/': repo})
     >>> dul_server = TCPGitServer(backend, 'localhost', 0)
     >>> dul_server = TCPGitServer(backend, 'localhost', 0)
     >>> threading.Thread(target=dul_server.serve).start()
     >>> threading.Thread(target=dul_server.serve).start()