Skip to content

Commit

Permalink
Fix typos in remote repositories tutorial
Browse files Browse the repository at this point in the history
Change-Id: I3d6b9d57c6080fc7f360c077a0d70497f5700045
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
  • Loading branch information
dpursehouse authored and jelmer committed Dec 11, 2013
1 parent d14c55c commit 20133b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tutorial/remote.txt
Expand Up @@ -54,7 +54,7 @@ which claims that the client doesn't have any objects::
... def ack(self, sha): pass ... def ack(self, sha): pass
... def next(self): pass ... def next(self): pass


With the determine_wants function in place, we can now fetch a pack, With the ``determine_wants`` function in place, we can now fetch a pack,
which we will write to a ``StringIO`` object:: which we will write to a ``StringIO`` object::


>>> from cStringIO import StringIO >>> from cStringIO import StringIO
Expand All @@ -70,14 +70,14 @@ which we will write to a ``StringIO`` object::
Fetching objects into a local repository Fetching objects into a local repository
---------------------------------------- ----------------------------------------


It also possible to fetch from a remote repository into a local repository, It is also possible to fetch from a remote repository into a local repository,
in which case dulwich takes care of providing the right graph walker, and in which case Dulwich takes care of providing the right graph walker, and
importing the received pack file into the local repository:: importing the received pack file into the local repository::


>>> from dulwich.repo import Repo >>> from dulwich.repo import Repo
>>> local = Repo.init("local", mkdir=True) >>> local = Repo.init("local", mkdir=True)
>>> remote_refs = client.fetch("/", local) >>> remote_refs = client.fetch("/", local)


Let's show down the server now that all tests have been run:: Let's shut down the server now that all tests have been run::


>>> dul_server.shutdown() >>> dul_server.shutdown()

0 comments on commit 20133b8

Please sign in to comment.