Fix a test failure (t9500-*.sh) on cygwin
commit060fe5718455828b2ce5721d26be6399d782e415
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 11 Sep 2007 18:16:51 +0000 (11 19:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Sep 2007 06:05:35 +0000 (11 23:05 -0700)
tree5893742a806eb5553f0e7e1d3232f8af8fe02b59
parent05cc2ffc572f05e8aeec495a9ab9bc9609863491
Fix a test failure (t9500-*.sh) on cygwin

On filesystems where it is appropriate to set core.filemode
to false, test 29 ("commitdiff(0): mode change") fails when
git-commit does not notice a file (execute) permission change.

A fix requires noting the new file execute permission in the
index with a "git update-index --chmod=+x", prior to the commit.
Add a function (note_chmod) which implements this idea, and
insert a call in each test that modifies the x permission.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9500-gitweb-standalone-no-errors.sh