aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gitosis/repository.py')
-rw-r--r--gitosis/repository.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/gitosis/repository.py b/gitosis/repository.py
index 8746144..4b7ff2b 100644
--- a/gitosis/repository.py
+++ b/gitosis/repository.py
@@ -20,6 +20,19 @@ def init(
template=None,
_git=None,
):
+ """
+ Create a git repository at C{path} (if missing).
+
+ Leading directories of C{path} must exist.
+
+ @param path: Path of repository create.
+
+ @type path: str
+
+ @param template: Template directory, to pass to C{git init}.
+
+ @type template: str
+ """
if _git is None:
_git = 'git'