Answer principles round 3: 0 🔴, 1 🟡 (0 misread); offer --amend only where the round commit is the newest
This commit is contained in:
@@ -672,7 +672,7 @@ class Hook(unittest.TestCase):
|
||||
ran = self.round_commit("Answer stability round 2: 0 🔴, 0 🟡 (0 misread); d")
|
||||
self.assertEqual(ran.returncode, 2)
|
||||
self.assertIn("stability's round commits on this branch: `Answer stability round 2: 0 🔴, 1 🟡 (0 misread); c`, `Answer stability round 1: 1 🔴, 0 🟡 (0 misread); a`", ran.stderr)
|
||||
self.assertIn("`git commit --amend`", ran.stderr)
|
||||
self.assertIn("`git commit --amend` where that is the newest commit", ran.stderr)
|
||||
self.assertEqual(self.round_commit("Answer prose round 2: 0 🔴, 0 🟡 (0 misread); d").returncode, 0)
|
||||
self.assertEqual(self.round_commit("Answer stability round 2: 0 🔴, 1 🟡 (0 misread); c, reworded", "--amend --allow-empty ").returncode, 0, "an amend replaces the commit it counts")
|
||||
git(self.repo, "commit", "-q", "--allow-empty", "-m", "fix a typo")
|
||||
|
||||
Reference in New Issue
Block a user