From a1d1d2cb421f16bd277d7c4ce88398ff0f5afb29 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 10 Nov 2010 09:59:17 +0100 Subject: tutorial: Fixed incorrect initialization code for bare repo, thank you, Bryan Bishop --- doc/source/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/source/tutorial.rst') diff --git a/doc/source/tutorial.rst b/doc/source/tutorial.rst index 72ddb1ca..9899c1bc 100644 --- a/doc/source/tutorial.rst +++ b/doc/source/tutorial.rst @@ -21,7 +21,7 @@ The first step is to create a ``Repo`` object to represent your repository:: In the above example, the directory ``/Users/mtrier/Development/git-python`` is my working repository and contains the ``.git`` directory. You can also initialize GitPython with a *bare* repository:: - repo = Repo.create("/var/git/git-python.git") + repo = Repo.init("/var/git/git-python.git", bare=True) assert repo.bare == True A repo object provides high-level access to your data, it allows you to create and delete heads, tags and remotes and access the configuration of the repository:: -- cgit v1.2.1