From a4574a077d024f32da50d26416efd5346f423479 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 21 Mar 2010 03:53:52 -0400 Subject: [PATCH] =?utf8?q?zephyr-post-receive:=20Don=E2=80=99t=20truncate?= =?utf8?q?=20a=20branch=20name=20containing=20/.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg --- git-hooks/zephyr-post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks/zephyr-post-receive b/git-hooks/zephyr-post-receive index a929432..11e36c6 100755 --- a/git-hooks/zephyr-post-receive +++ b/git-hooks/zephyr-post-receive @@ -39,7 +39,7 @@ fi while read oldrev newrev refname; do if [ "$oldrev" = "0000000000000000000000000000000000000000" ]; then # dammit git - zwrite -c "$class" -i "${instance:-$(basename "$refname")}" -s "$zsig: $refname" -d \ + zwrite -c "$class" -i "${instance:-${refname#refs/heads/}}" -s "$zsig: $refname" -d \ -m "New branch $refname created, currently at $newrev." continue fi -- 2.45.0