dehub/accessctl
mediocregopher c2c7fdf691 Support non-fastforward commits
---
type: change
message: |-
  Support non-fastforward commits

  This includes:

  * adding a filter to accessctl which can be used to allow non-ff commits, and
    augmenting the default access controls to deny non-ff commits for master.
    VerifyCommits was then modified to use that new functionality, and then tests
    were added to cover that.

  * adding a `VerifyBranchCanSetHEADTo` method, and using that in the pre-receive
    hook rather than putting all the logic in the hook itself.
    `VerifyBranchCanSetHEADTo` is thoroughly tested, and the tests for it ended up
    uncovering some broken aspects of `VerifyCommits` as well, so those are fixed
    too.
change_hash: ACTyCsTFBnAjGAek355IU3I6MioLIx5mb1mS4YjMUrF5
credentials:
- type: pgp_signature
  pub_key_id: 95C46FA6A41148AC
  body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl6jPvsACgkQlcRvpqQRSKxfag/+JD8bs7zbFZc3XzLWz3vOhPl3OaxdXbQoqlCVywBSZ1dHrJ7BtbTltQpRgNRv+Khs/ibQAUphDFKsAauF7IKZu2fcluMYH1kulEZsYzHFZUz3zDNcPtZhD/KdPgBRSa4tv76iaeCvGGv7Eb9zHxzYiXofkf8Bkn7n63D3aE1N3MhceSPAU07johiZnjXpb2UGonLq1kQlCcEAy57H82iv0N21QjJmZ/bSNgT9d6c9kEb4lmOCs1ZWvW7kzqVLXkhgZ2/77nLKTaFvsTjA6MOodD2vrLQ4KmHmWLjYA2PmqMLkSKoMIUQhatIZiBiJNvF0HztPiIhCJLVwu5eGnVGQwMR74IOBoATlb8R7FuqOhX70b4B0W8O7ovIDWM5dNatKyrzJkJ9lWPX61dP6cx7cshM3dQAr+Xmjvu2CTllIFg01b0j3Ec0epbbXbb5QsuWleaEbsqatktRMiISC/6ix2ijH/n5vYq9GsDS9VhpsXLHdBVIiveorAXr92BR0wrHF2p7sSy7sptcmNLXe4SlJVHi4AHw7qbixoZKo4mPQepsxaIbeBNG74X0Wg4MGKDBUfQ2kX8JpU4jq/ZVDBGAY6CfH9s1Zns4BVQBokBeCUgh3Iik6NzeKAiPTNnD20JfXxaX1OfJIwP8yopUnqJQXdjqV0KFPRym0VNZyCXQEHFU=
  account: mediocregopher
2020-04-24 13:33:33 -06:00
..
access_control_test.go Give the project a proper root, dehub.dev/src/dehub.git 2020-03-29 15:16:36 -06:00
access_control.go Support non-fastforward commits 2020-04-24 13:33:33 -06:00
filter_logical_test.go completely refactor accessctl (again) 2020-03-18 16:35:32 -06:00
filter_logical.go completely refactor accessctl (again) 2020-03-18 16:35:32 -06:00
filter_pattern_test.go completely refactor accessctl (again) 2020-03-18 16:35:32 -06:00
filter_pattern.go completely refactor accessctl (again) 2020-03-18 16:35:32 -06:00
filter_sig_test.go implement the ability for users without an account to still submit accredited co... 2020-04-11 17:10:18 -06:00
filter_sig.go implement the ability for users without an account to still submit accredited co... 2020-04-11 17:10:18 -06:00
filter_test.go Support non-fastforward commits 2020-04-24 13:33:33 -06:00
filter.go Support non-fastforward commits 2020-04-24 13:33:33 -06:00