author | Junio C Hamano <gitster@pobox.com> | |
Tue, 29 Jul 2008 05:27:39 +0000 (22:27 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 29 Jul 2008 06:02:12 +0000 (23:02 -0700) | ||
commit | 65c35b2256ecbfaebcf04559fe6070807646afff | |
tree | 3df48808efc80074faead617362ca9680302d433 | tree | snapshot |
parent | c297432d0d245af5505e0f5f99a5267119dd421e | commit | diff |
t7001: fix "git mv" test
The test assumed that we can keep the cached stat information fresh across
rename(2); many filesystems however update st_ctime (and POSIX allows them
to do so), and that assumption does not hold.
We can explicitly refresh the index for the purpose of these tests. The
only thing we are interested in is the staged contents and the mode bits
are preserved across "git mv".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The test assumed that we can keep the cached stat information fresh across
rename(2); many filesystems however update st_ctime (and POSIX allows them
to do so), and that assumption does not hold.
We can explicitly refresh the index for the purpose of these tests. The
only thing we are interested in is the staged contents and the mode bits
are preserved across "git mv".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7001-mv.sh | diff | blob | history |