progit2
progit2 copied to clipboard
Customizing-Git-An-Example-Git-Enforced-Policy need remark
Here https://git-scm.com/book/en/v2/Customizing-Git-An-Example-Git-Enforced-Policy
I think it must contain remark about git hook update when it is new branch. oldrev will be 0 and hook will not work. And all commits will be passed.
missed_revs = `git rev-list #{$oldrev}..#{$newrev}`.split("\n")
https://stackoverflow.com/questions/3511057/git-receive-update-hooks-and-new-branches look at "right answer"
Ooh, nice. If you have a handle on how this could be resolved, do you want to submit a PR?