• Michael J Gruber's avatar
    t3306,t5304: avoid clock skew issues · e3b02bc9
    Michael J Gruber authored
    On systems where the local time and file modification time may be out of
    sync (e.g. test directory on NFS) t3306 and t5305 can fail because prune
    compares times such as "now" (client time) with file modification times
    (server times for remote file systems). I.e., these are spurious test
    Avoid this by setting the relevant modification times to the local time.
    Noticed on a system with as little as 2s time skew.
    Signed-off-by: default avatarMichael J Gruber <git@drmicha.warpmail.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
t3306-notes-prune.sh 2.93 KB