docs: clarify git-init recipe

Fixes #336
This commit is contained in:
J. David Ibáñez 2014-02-11 22:03:23 +01:00
parent 56a2f0f9a8
commit 92547db18d

View File

@ -12,11 +12,11 @@ Create bare repository
.. code-block:: bash
$> git init --bare relative/path
$ git init --bare path/to/git
.. code-block:: python
>>> pygit2.init_repository('relative/path', True)
>>> pygit2.init_repository('path/to/git', True)
<pygit2.repository.Repository object at 0x10f08b680>
======================================================================
@ -25,17 +25,17 @@ Create standard repository
.. code-block:: bash
$> git init relative/path
$ git init path/to/git
.. code-block:: python
>>> pygit2.init_repository('relative/path', False)
>>> pygit2.init_repository('path/to/git', False)
<pygit2.repository.Repository object at 0x10f08b680>
----------------------------------------------------------------------
References
----------------------------------------------------------------------
- git-init_.
- git-init_
.. _git-init: https://www.kernel.org/pub/software/scm/git/docs/git-init.html