[tor-bugs] #27993 [Core Tor/Tor]: craft a git pre push hook that declines to receive fixup! commits?
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Nov 20 18:24:30 UTC 2018
#27993: craft a git pre push hook that declines to receive fixup! commits?
----------------------------+------------------------------------
Reporter: arma | Owner: (none)
Type: defect | Status: merge_ready
Priority: Medium | Milestone: Tor: 0.4.0.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: technical-debt | Actual Points:
Parent ID: | Points:
Reviewer: dgoulet | Sponsor:
----------------------------+------------------------------------
Comment (by dgoulet):
Replying to [comment:7 nickm]:
> I'd like the script to include directions on how to install it.
It should be very straight forward: "Copy file into .git/hooks/ and name
it pre-push" :).
> I like `pre-push.git-hook` as a name.
>
> Question -- will this stop somebody from pushing the existing master
branch (which has some errant fixup! commits) to a new repository?
Yes it will but for that you can use `--no-verify` switch. So you can push
all branches _before_ installing the hook and be done with it :).
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27993#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list