Install git hooks as part of prepare-dev.py
Review Request #10182 — Created Sept. 25, 2018 and submitted
We now install a
post-checkout
git hook as part ofprepare-dev.py
that will remove all.pyc
files in the repository when a new ref is
checked out. This is to prevent stale.pyc
files 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 multiplegit worktree
s to developers).
Ran
./contrib/internal/prepare-dev.py
and 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
printed; and - if the hook did exist but was non-executable it was overwritten.
Description | From | Last Updated |
---|---|---|
Add another blank line here. |
david | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot |
- Change Summary:
-
Addressed feedback.
- Commit:
-
0f85742e2a4890bf119e54cd8b968929197b4f1ec029e0e2db5d8c76ffed6f4f995d264546b46b5c
- Diff:
-
Revision 2 (+78 -1)
Checks run (2 succeeded)
- Change Summary:
-
Rebase
- Commit:
-
c029e0e2db5d8c76ffed6f4f995d264546b46b5ce4d17a54394d5920bd130f1ae7c5dd3c4394ec80
- Diff:
-
Revision 3 (+92 -1)
- Change Summary:
-
OOPSIE
- Commit:
-
e4d17a54394d5920bd130f1ae7c5dd3c4394ec805607860269dc32b0f79d870f0390291a362abdfc
- Diff:
-
Revision 4 (+83 -1)