]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7001-mv.sh
t7001: fix "git mv" test
authorJunio C Hamano <gitster@pobox.com>
Tue, 29 Jul 2008 05:27:39 +0000 (22:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jul 2008 06:02:12 +0000 (23:02 -0700)
commit65c35b2256ecbfaebcf04559fe6070807646afff
tree3df48808efc80074faead617362ca9680302d433
parentc297432d0d245af5505e0f5f99a5267119dd421e
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>
t/t7001-mv.sh