HomeSoftware Heritage

git2graph: fix snapshot ID computation, now compatible with swh identify

Description

git2graph: fix snapshot ID computation, now compatible with swh identify

Before this change the git header "snapshot LENGTH\0" was not added before
taking the SHA1, so results where (1) incompatible with swh identify, because of
(2) not comformant with the snapshot manifest specification.

With this change ...YAY!

Fix the tests accordingly, after cross-verifying test data with "swh identify
-t snapshot".

Details

Provenance
zackAuthored on Oct 20 2019, 7:00 PM
zackPushed on Oct 20 2019, 9:21 PM
Parents
rDGRPHd93aeaf2a085: git2graph: remove left over, comment out debug prints
Branches
Unknown
Tags
Unknown
Build Status
Buildable 8563
Build 12448: test-and-buildJenkins