aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit/templates/format-commit-email.sh
diff options
context:
space:
mode:
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