sipb-www
/
snippets
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7871bb4
)
zephyr-post-receive: Don’t truncate a branch name containing /.
author
Anders Kaseorg
<andersk@mit.edu>
Sun, 21 Mar 2010 07:53:52 +0000
(
03:53
-0400)
committer
Anders Kaseorg
<andersk@mit.edu>
Sun, 21 Mar 2010 07:53:52 +0000
(
03:53
-0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
git-hooks/zephyr-post-receive
patch
|
blob
|
history
diff --git
a/git-hooks/zephyr-post-receive
b/git-hooks/zephyr-post-receive
index a929432b3aef5c03b56a211b791aad24de3a37c1..11e36c6af10fdf9dab898a71d2d5d4625da6e967 100755
(executable)
--- 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