diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-10 09:59:17 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-10 09:59:17 +0100 |
commit | a1d1d2cb421f16bd277d7c4ce88398ff0f5afb29 (patch) | |
tree | a533d026095c016a9e06b4f682b2082bbf737fe8 /doc/source/tutorial.rst | |
parent | bd7fb976ab0607592875b5697dc76c117a18dc73 (diff) | |
download | gitpython-a1d1d2cb421f16bd277d7c4ce88398ff0f5afb29.tar.gz |
tutorial: Fixed incorrect initialization code for bare repo, thank you, Bryan Bishop
Diffstat (limited to 'doc/source/tutorial.rst')
-rw-r--r-- | doc/source/tutorial.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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:: |