]> mj.ucw.cz Git - git-tools.git/blobdiff - update
Makefile: Fixed release machinery
[git-tools.git] / update
diff --git a/update b/update
index 23fc8ecf3a6a5f681f6bc3dbfd83a50c00617391..b4bf495635f4e81172e45273ed154b825b7f3f57 100755 (executable)
--- 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 <mj@ucw.cz> 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