Set HEAD from backup bundle files
Fixes #3856 (closed)
Previously backup relied on git-clone setting HEAD from bundle files but now that we apply a series of bundles, the bundles are applied using git-fetch instead. This means we need to apply our own HEAD setting logic based off of the bundle.
ChecksumTestRepo was incorrectly calculating repository checksums without HEAD.