]> git.ipfire.org Git - thirdparty/git.git/commit
t7508: fix bogus mtime verification
authorMarc Strapetz <marc.strapetz@syntevo.com>
Fri, 7 Jan 2022 11:17:29 +0000 (11:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jan 2022 20:37:30 +0000 (12:37 -0800)
commit0275e4daabed330c4d27cc9a482c2d23d7544aca
tree96e43cb9e4e17159ba366f0239f5ba2c97f49abf
parentab6245bdeed46e1ff3bd378690066abd2ed0f2ef
t7508: fix bogus mtime verification

The current `grep`-approach in "--no-optional-locks prevents index
update" may fail e.g. for `out` file contents "1234567890999" [1].
Fix this by using test-lib's new mtime-verification API.

[1] https://lore.kernel.org/git/xmqqczl5hpaq.fsf@gitster.g/T/#u

Signed-off-by: Marc Strapetz <marc.strapetz@syntevo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7508-status.sh