aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit/templates/format-commit-email.sh
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-08-22 10:19:59 +0000
committerColin Guthrie <colin@mageia.org>2013-08-22 10:19:59 +0000
commit5fb8bd6d643c7bd7e4889ccba6e312238f7d520a (patch)
treed8c4913d12ac618c795495274e8ce5ec24651dac /deployment/mgagit/templates/format-commit-email.sh
parentdd5f4738d6c105ce70e4908858ef3f1efcbead82 (diff)
downloadpuppet-5fb8bd6d643c7bd7e4889ccba6e312238f7d520a.tar
puppet-5fb8bd6d643c7bd7e4889ccba6e312238f7d520a.tar.gz
puppet-5fb8bd6d643c7bd7e4889ccba6e312238f7d520a.tar.bz2
puppet-5fb8bd6d643c7bd7e4889ccba6e312238f7d520a.tar.xz
puppet-5fb8bd6d643c7bd7e4889ccba6e312238f7d520a.zip
mgagit: Gitolite doesn't like the complex hook value, so abstract it to a script.
Diffstat (limited to 'deployment/mgagit/templates/format-commit-email.sh')
-rw-r--r--deployment/mgagit/templates/format-commit-email.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/deployment/mgagit/templates/format-commit-email.sh b/deployment/mgagit/templates/format-commit-email.sh
new file mode 100644
index 00000000..f41c3fce
--- /dev/null
+++ b/deployment/mgagit/templates/format-commit-email.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+REV=$1
+if [ -z "$1" ]; then
+ echo "Unknown Commit"
+ exit
+fi
+if [ -z "$GL_REPO" ]; then
+ echo "Cannot find Gitolite Repository"
+ exit
+fi
+
+echo '-----------------------------------------------------------------------'
+echo
+echo "http://gitweb.mageia.org/$GL_REPO/commit/?id=$REV"
+echo
+echo
+git show -C $REV
+echo