t6036: avoid non-portable "cp -a"
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Sat, 1 Dec 2018 02:52:12 +0000 (18:52 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 1 Dec 2018 12:00:11 +0000 (21:00 +0900)
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 <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6036-recursive-corner-cases.sh
index b7488b00c04526e938a2c0fe2937ce04fbdc4640..d23b948f27f13ec81dd40fb52caa2ea4b5b8500c 100755 (executable)
@@ -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"  \