diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-28 08:19:03 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-28 08:19:03 +0000 |
commit | 33cd99f204403f6f486507d4494c84880e85593c (patch) | |
tree | f36834196b1a7b5987b48d3b7bd9110d9b10b80a /gitosis/repository.py | |
parent | Remove old extract_user function, replaced by username property of SSHPublicK... (diff) | |
download | gitosis-dakkar-33cd99f204403f6f486507d4494c84880e85593c.tar.gz gitosis-dakkar-33cd99f204403f6f486507d4494c84880e85593c.tar.bz2 gitosis-dakkar-33cd99f204403f6f486507d4494c84880e85593c.zip |
Add support for custom perms during repo creation.
Diffstat (limited to 'gitosis/repository.py')
-rw-r--r-- | gitosis/repository.py | 7 |
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=.', |