From c1241918459260db1f02eec2dcf27d5002cead43 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 3 Apr 2008 10:14:35 +0200 Subject: [PATCH] Another fix to allow tests on symlink challenged file systems to pass Signed-off-by: Johannes Sixt --- t/t2201-add-update-typechange.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/t/t2201-add-update-typechange.sh b/t/t2201-add-update-typechange.sh index e15e3eb81b..69ac97e648 100755 --- a/t/t2201-add-update-typechange.sh +++ b/t/t2201-add-update-typechange.sh @@ -4,6 +4,15 @@ test_description='more git add -u' . ./test-lib.sh +symlink_change=T +if test "$no_symlinks" +then + ln () { + echo -n "$2" > "$3" + } + symlink_change=M +fi + _z40=0000000000000000000000000000000000000000 test_expect_success setup ' @@ -71,7 +80,7 @@ test_expect_success modify ' s/blob/000000/ } / nitfol/{ - s/ nitfol/ $_z40 T&/ + s/ nitfol/ $_z40 $symlink_change&/ s/blob/100644/ } / rezrov.bozbar/{