Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2019-06-16 21:58:06 +0000
committerMatthias Sohn2019-06-19 08:43:00 +0000
commit9387288a8612eb9e9478c5ecfe4b1351a0ed4717 (patch)
tree8f007d2b8df46bb617a7aa268ea90eed9c4288ca /org.eclipse.jgit.http.server
parentc366f6483925f19670dae72c6b775911772f1ae6 (diff)
downloadjgit-9387288a8612eb9e9478c5ecfe4b1351a0ed4717.tar.gz
jgit-9387288a8612eb9e9478c5ecfe4b1351a0ed4717.tar.xz
jgit-9387288a8612eb9e9478c5ecfe4b1351a0ed4717.zip
Fix non-deterministic hash of archives created by ArchiveCommand
Archives created by the ArchiveCommand didn't produce deterministic archive hashes. For RevCommits RevWalk.parseTree returns the root tree instead of the RevCommit hence retrieving the commit's timestamp didn't work. Instead use RevWalk.parseAny and extract the tree manually. Archive entries store timestamps with 1 second resolution hence we need to wait longer when creating the same archive twice and compare archive hashes. Otherwise hash comparison in tests wouldn't fail without this patch. Bug: 548312 Change-Id: I437d515de51cf68265584d28a8446cebe6341b79 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.http.server')
0 files changed, 0 insertions, 0 deletions

Back to the top