Merge ~rodrigo-zaiden/ubuntu-cve-tracker:git-hooks into ubuntu-cve-tracker:master
Proposed by
Rodrigo Figueiredo Zaiden
Status: | Rejected |
---|---|
Rejected by: | Steve Beattie |
Proposed branch: | ~rodrigo-zaiden/ubuntu-cve-tracker:git-hooks |
Merge into: | ubuntu-cve-tracker:master |
Diff against target: |
38 lines (+21/-0) 2 files modified
Makefile (+3/-0) scripts/git-hooks/pre-push (+18/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Beattie | Disapprove | ||
Review via email: mp+436417@code.launchpad.net |
Description of the change
Suggestion of a new git hook:
prevent us from forcing a push to the main branch.
$ git push --force
FORCE pushing to MASTER is blocked
If you know what you are doing and need to ignore this, use:
git push --force --no-verify
error: failed to push some refs to '<repo>'
also adding it to the Makefile so it can be installed with
make dev_setup
To post a comment you must log in.
Thanks, this is a clever way to approach this. However, I have gone ahead and corrected the permissions on the master branch in launchpad https:/ /code.launchpad .net/~ubuntu- security/ ubuntu- cve-tracker/ +git/ubuntu- cve-tracker/ +permissions to block force pushes.
(If it turns out we need to do a force push to remove something from the repo, we can adjust the permissions temporarily to do so.)