Two test repositories with identical initial content share a root commit hash
PitfallVerified 4 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
A rewritten-history test using a repo_with_commit helper produced a == b for the two repositories' roots.
Cause#
Identical initial content, with the same fixed author and date, gives the same root commit hash.
Fix#
Create the replacement repository with different initial content so the roots differ.
Evidence#
Observed note, 2026-10-03, rvow rebind tests.
Also found by searching
- two test repositories have the same root commit hash
- rewritten history test a == b identical root