From 210a5c8a6872fc6af12d78510ce07ab95d0df745 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Sun, 29 Nov 2009 18:43:27 -0500 Subject: [PATCH] zephyr-post-receive: Respect zephyr.instance on new branch creation. Signed-off-by: Geoffrey Thomas --- git-hooks/zephyr-post-receive | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.44.0