From: Carlo Marcelo Arenas Belón Date: Sat, 1 Dec 2018 02:52:12 +0000 (-0800) Subject: t6036: avoid non-portable "cp -a" X-Git-Tag: v2.21.0-rc0~134^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc4cb0902c2e4f9bc003b52f33da8fcb6020f649;p=thirdparty%2Fgit.git t6036: avoid non-portable "cp -a" b8cd1bb713 ("t6036, t6043: increase code coverage for file collision handling", 2018-11-07) uses this GNU extension that is not available in a POSIX complaint cp. In this particular case, there is no need to use the option, as it is just copying a single file to create another file. Signed-off-by: Carlo Marcelo Arenas Belón Signed-off-by: Junio C Hamano --- diff --git a/t/t6036-recursive-corner-cases.sh b/t/t6036-recursive-corner-cases.sh index b7488b00c0..d23b948f27 100755 --- a/t/t6036-recursive-corner-cases.sh +++ b/t/t6036-recursive-corner-cases.sh @@ -1631,7 +1631,7 @@ test_expect_success 'check nested conflicts' ' # Compare m to expected contents >empty && - cp -a m_stage_2 expected_final_m && + cp m_stage_2 expected_final_m && test_must_fail git merge-file --diff3 \ -L "HEAD" \ -L "merged common ancestors" \