[tor-bugs] #30286 [Core Tor/Tor]: pre-push git hook will warn about fixups for no reason

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed May 1 11:16:58 UTC 2019


#30286: pre-push git hook will warn about fixups for no reason
--------------------------------+------------------------------------
 Reporter:  asn                 |          Owner:  rl1987
     Type:  defect              |         Status:  needs_information
 Priority:  Medium              |      Milestone:  Tor: 0.4.1.x-final
Component:  Core Tor/Tor        |        Version:
 Severity:  Normal              |     Resolution:
 Keywords:  tor-ci git-scripts  |  Actual Points:
Parent ID:                      |         Points:  0.2
 Reviewer:                      |        Sponsor:
--------------------------------+------------------------------------
Changes (by rl1987):

 * status:  accepted => needs_information


Comment:

 Regarding "Github but not upstream" part, we can refrain from checking
 commit titles when not pushing to upstream. See:
 https://github.com/rl1987/tor/commit/d91deeee45c3433cc7dcaf1e67a84692420db870

 The second part is harder. To list commits that first appeared on branch
 being pushed one needs to find out parent branch, which seems to require
 some nasty looking code to make it work in general case. See:
 * https://stackoverflow.com/a/4649377
 * https://stackoverflow.com/questions/3161204/find-the-parent-branch-of-a
 -git-branch

 Not sure the extra complexity cost makes it worthwhile?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30286#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list