From 5fb8bd6d643c7bd7e4889ccba6e312238f7d520a Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Thu, 22 Aug 2013 10:19:59 +0000 Subject: mgagit: Gitolite doesn't like the complex hook value, so abstract it to a script. --- deployment/mgagit/templates/format-commit-email.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 deployment/mgagit/templates/format-commit-email.sh (limited to 'deployment/mgagit/templates/format-commit-email.sh') 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 -- cgit v1.2.1