I have a problem with the \'update\' hook. In the case of a new branch, it gets a 0000000000000000000000000000000000000000 as the \'oldrev\'. And I don\'t know how to handle
I solved this for my update hook using the following:
if [ "$oldrev" -eq 0 ]; then git log "$(git show-branch --merge-base)".."$newrev"; else foo; fi