Skip to content

Commit a1d1d2c

Browse files
committed
tutorial: Fixed incorrect initialization code for bare repo, thank you, Bryan Bishop
1 parent bd7fb97 commit a1d1d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/source/tutorial.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The first step is to create a ``Repo`` object to represent your repository::
2121

2222
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::
2323

24-
repo = Repo.create("/var/git/git-python.git")
24+
repo = Repo.init("/var/git/git-python.git", bare=True)
2525
assert repo.bare == True
2626
2727
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::

0 commit comments

Comments
 (0)