X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/blobdiff_plain/7871bb44698093fa16f35d50648bbdd3f177c883..a4574a077d024f32da50d26416efd5346f423479:/git-hooks/zephyr-post-receive 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