aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/files
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/files')
-rw-r--r--modules/git/files/apply_git_puppet_config.sh7
-rw-r--r--modules/git/files/create_git_repo.sh11
2 files changed, 18 insertions, 0 deletions
diff --git a/modules/git/files/apply_git_puppet_config.sh b/modules/git/files/apply_git_puppet_config.sh
new file mode 100644
index 00000000..29ede998
--- /dev/null
+++ b/modules/git/files/apply_git_puppet_config.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+while read line
+do
+ # --local is a option for the newer git
+ git config --add $line
+done < config.puppet
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
+