aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/files/create_git_repo.sh
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-11 17:50:01 +0000
committerMichael Scherer <misc@mageia.org>2011-02-11 17:50:01 +0000
commite849bcd1b0729e432625d6f1d35758dfc20c8c02 (patch)
treee95512f167f51f1c94a316580509d0179222500b /modules/git/files/create_git_repo.sh
parentb3aa611aea913cacae53aa547beac0954bd45308 (diff)
downloadpuppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.tar
puppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.tar.gz
puppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.tar.bz2
puppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.tar.xz
puppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.zip
use source instead of templates ( likely lighter, no need to parse the file for no reason )
Diffstat (limited to 'modules/git/files/create_git_repo.sh')
-rw-r--r--modules/git/files/create_git_repo.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/git/files/create_git_repo.sh b/modules/git/files/create_git_repo.sh
new file mode 100644
index 00000000..1104edbe
--- /dev/null
+++ b/modules/git/files/create_git_repo.sh
@@ -0,0 +1,11 @@
+#!/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 * )
+git config receive.denyNonFastForwards true
+