X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=update;h=b4bf495635f4e81172e45273ed154b825b7f3f57;hb=HEAD;hp=23fc8ecf3a6a5f681f6bc3dbfd83a50c00617391;hpb=c4faccbf0bee0127f0fd80a5934eba0a904c67ff;p=git-tools.git diff --git a/update b/update index 23fc8ec..b4bf495 100755 --- a/update +++ b/update @@ -1,10 +1,11 @@ -#!/bin/sh +#!/bin/bash # # This is a generic update hook script for GIT repositories. +# Written by Martin Mares based on the template from GIT distribution. # # Called by git-receive-pack with arguments: refname sha1-old sha1-new # -# Expects the following environment variables: +# Expects the following environment variables to be set: # # recipient where to send the mail reports to # sub_prefix prefix which should be prepended to mail subject @@ -22,7 +23,7 @@ fi out=`mktemp -t gitlog.XXXXXXX` if [ $branch == master ] ; then - subj="$sub_prefix" + subj="[$sub_prefix]" else subj="[$sub_prefix:$branch]" fi