Ignore:
Timestamp:
Oct 12, 2009, 2:16:30 AM (15 years ago)
Author:
broder
Message:

Update the zephyr-post-receive hook from the snippets locker.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/git-hooks/sub/zephyr-post-receive

    r2501 r2502  
    2626fi
    2727while read oldrev newrev refname; do
    28   git-rev-list --reverse "$oldrev..$newrev" | while read rev; do
     28  if [ "$oldrev" = "0000000000000000000000000000000000000000" ]; then
     29    # dammit git
     30    zwrite -c "$class" -i "$(basename "$refname")" -s "${zsig:-Git}: $refname" -d \
     31      -m "New branch created."
     32    continue
     33  fi
     34  git rev-list --first-parent --reverse "$oldrev..$newrev" | while read rev; do
    2935    shortrev=`git log -1 --pretty=format:%h "$rev"`
    30     (git show --stat $usecolor "$rev" |
     36    (git show --stat -M $usecolor "$rev" |
    3137     sed -e 's/@/@@/g' \
    3238         -e 's/}/@(})/g' \
Note: See TracChangeset for help on using the changeset viewer.