aboutsummaryrefslogtreecommitdiff
path: root/gitosis/repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitosis/repository.py')
-rw-r--r--gitosis/repository.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/gitosis/repository.py b/gitosis/repository.py
index db74046..1e27b2a 100644
--- a/gitosis/repository.py
+++ b/gitosis/repository.py
@@ -21,6 +21,7 @@ def init(
path,
template=None,
_git=None,
+ mode=0750,
):
"""
Create a git repository at C{path} (if missing).
@@ -34,11 +35,15 @@ def init(
@param template: Template directory, to pass to C{git init}.
@type template: str
+
+ @param mode: Permissions for the new reposistory
+
+ @type mode: int
"""
if _git is None:
_git = 'git'
- util.mkdir(path, 0750)
+ util.mkdir(path, mode)
args = [
_git,
'--git-dir=.',