]> snippets.scripts.mit.edu Git - Scripts/git/.git/blobdiff - git-hooks/zephyr-post-receive
zephyr-post-receive: Don’t truncate a branch name containing /.
[Scripts/git/.git] / git-hooks / zephyr-post-receive
index 38f211e4aa010cb5bda5606bbd7df61a075aa39f..11e36c6af10fdf9dab898a71d2d5d4625da6e967 100755 (executable)
@@ -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:-${refname#refs/heads/}}" -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