mgmt
mgmt copied to clipboard
test: Fix commit testing
Currently, the testing of commits is in CI, and is CI dependent.
This is a problem if we switch to a new CI, or if someone wants to test locally.
This fixes it by making sure the test/test-commit-message can be triggered locally, and finds the new commits. As a side benefit, test/test-commit-message easier to understand: It compares the HEAD of the branch until reaching a common ancestor in origin, listing all the SHAs, and send those to the testing functions.
Closes: https://github.com/purpleidea/mgmt/issues/643
Removed the BREAK stuff patch, which is failing (on purpose). This is good to go.
Updated: Was broken because I was using spaces. Replaced spaces with tabs. Yes, I had to sell my soul for this patch to land. :laughing: