aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/templates')
-rw-r--r--modules/git/templates/create_git_repo.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/git/templates/create_git_repo.sh b/modules/git/templates/create_git_repo.sh
new file mode 100644
index 00000000..69cfa6ff
--- /dev/null
+++ b/modules/git/templates/create_git_repo.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+umask 0002
+# http://eagleas.livejournal.com/18907.html
+name="$1"
+mkdir -p $name
+cd $name
+git --bare init --shared=group
+chmod g+ws branches info objects refs
+( cd objects; chmod g+ws * )