Install git hooks as part of prepare-dev.py
Review Request #10182 — Created Sept. 25, 2018 and submitted — Latest diff uploaded
We now install a
post-checkoutgit hook as part of
that will remove all
.pycfiles in the repository when a new ref is
checked out. This is to prevent stale
.pycfiles from other release
branches from sticking around when working on patches on multiple
versions of Review Board (without having to provide instructions on
setting up multiple
git worktrees to developers).
./contrib/internal/prepare-dev.pyand observed the following:
- if the hook did not exist it would be created;
- if the hook did exist but didn't match the content a warning was
- if the hook did exist but was non-executable it was overwritten.