Use testutil.RunGit instead of a local runGit, run git --version with gitenv.Isolated, and pin the checkpoint trailer in the missing-tree case.
Entire-Checkpoint: 01M6NW9D8W2KETP0MWV4ZRXY8V