From: Geoffrey Thomas Date: Sun, 29 Nov 2009 23:43:27 +0000 (-0500) Subject: zephyr-post-receive: Respect zephyr.instance on new branch creation. X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/commitdiff_plain/210a5c8a6872fc6af12d78510ce07ab95d0df745 zephyr-post-receive: Respect zephyr.instance on new branch creation. Signed-off-by: Geoffrey Thomas --- diff --git a/git-hooks/zephyr-post-receive b/git-hooks/zephyr-post-receive index 38f211e..a929432 100755 --- a/git-hooks/zephyr-post-receive +++ b/git-hooks/zephyr-post-receive @@ -39,8 +39,8 @@ fi while read oldrev newrev refname; do if [ "$oldrev" = "0000000000000000000000000000000000000000" ]; then # dammit git - zwrite -c "$class" -i "$(basename "$refname")" -s "$zsig: $refname" -d \ - -m "New branch created." + zwrite -c "$class" -i "${instance:-$(basename "$refname")}" -s "$zsig: $refname" -d \ + -m "New branch $refname created, currently at $newrev." continue fi git rev-list --first-parent --reverse "$oldrev..$newrev" | while read rev; do