diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2008-08-13 19:49:30 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-13 18:18:23 -0700 |
commit | 21926fe885aa6579f7aa0e89fcb6a9064f8aa516 (patch) | |
tree | 904d286421f456f198978881d95a7e96f2982fd4 /Documentation/git-update-server-info.txt | |
parent | Fix escaping of glob special characters in pathspecs (diff) | |
download | tgif-21926fe885aa6579f7aa0e89fcb6a9064f8aa516.tar.xz |
t5304-prune: adjust file mtime based on system time rather than file mtime
test-chmtime can adjust the mtime of a file based on the file's mtime, or
based on the system time. For files accessed over NFS, the file's mtime is
set by the NFS server, and as such may vary a great deal from the NFS
client's system time if the clocks of the client and server are out of
sync. Since these tests are testing the expire feature of git-prune, an
incorrect mtime could cause a file to be expired or not expired incorrectly
and produce a test failure.
Avoid this NFS pitfall by modifying the calls to test-chmtime so that the
mtime is adjusted based on the system time, rather than the file's mtime.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-update-server-info.txt')
0 files changed, 0 insertions, 0 deletions