Skip to content

Commit 55e8615

Browse files
committed
Merge branch 'eb/t1016-hash-transition-fix'
Test fix. * eb/t1016-hash-transition-fix: t1016-compatObjectFormat: really freeze time for reproduciblity
2 parents a82fd50 + f711f37 commit 55e8615

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

t/t1016-compatObjectFormat.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ test_description='Test how well compatObjectFormat works'
2121
# different hash functions result in the same content in the commits.
2222
# This means that when the commit is translated between hash functions
2323
# the commit is identical to the commit in the other repository.
24+
#
25+
# Similarly this test relies on:
26+
# gpg --faked-system-time '20230918T154812!
27+
# freezing the system time from gpg perspective so that two different
28+
# runs of gpg applied to the same data result in identical signatures.
29+
#
2430

2531
compat_hash () {
2632
case "$1" in

t/t1016/gpg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
exec gpg --faked-system-time "20230918T154812" "$@"
2+
exec gpg --faked-system-time '20230918T154812!' "$@"

0 commit comments

Comments
 (0)