From 33cd99f204403f6f486507d4494c84880e85593c Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Fri, 28 Dec 2007 08:19:03 +0000 Subject: Add support for custom perms during repo creation. --- gitosis/repository.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gitosis/repository.py') 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=.', -- cgit v1.2.3