X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/3e4e36646abc246c52b6001b2a04ab70c31060b5..03c325c9835bbb97440398ab0dc20373f48db33d:/invirt-add-repo?ds=inline

diff --git a/invirt-add-repo b/invirt-add-repo
index bb48b49..b2c4dbc 100755
--- a/invirt-add-repo
+++ b/invirt-add-repo
@@ -30,7 +30,9 @@ def main():
 
     print 'Creating new repo at %s' % repo_path
     os.makedirs(repo_path)
-    common.captureOutput(['git', 'init', '--bare'], cwd=repo_path)
+    common.captureOutput(['git', 'init', '--bare', '--shared=group'], cwd=repo_path)
+    common.captureOutput(['git', 'config', 'receive.denyNonFastForwards', 'false'], cwd=repo_path)
+    common.captureOutput(['chgrp', 'repo', '-R', '.'], cwd=repo_path)
     print 'Replacing hooks directory with a symlink'
     hooks_dir = os.path.join(repo_path, 'hooks')
     shutil.rmtree(hooks_dir)