t: fix quotes tests for --pathspec-from-file
authorAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Tue, 31 Dec 2019 10:15:11 +0000 (10:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Jan 2020 20:14:20 +0000 (12:14 -0800)
commit568cabb2fed8e5e61057ac678a70a565dffd0763
tree5ae4d2967f70ac05d15fe6c5db1e0dc2cff09472
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783
t: fix quotes tests for --pathspec-from-file

While working on the next patch, I also noticed that quotes testing via
`"\"file\\101.t\""` was somewhat incorrect: I escaped `\` one time while
I had to escape it two times! Tests still worked due to `"` being
preserved which in turn prevented pathspec from matching files.

Fix this by using here-doc instead.

Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2026-checkout-pathspec-file.sh
t/t2072-restore-pathspec-file.sh
t/t3704-add-pathspec-file.sh
t/t7107-reset-pathspec-file.sh
t/t7526-commit-pathspec-file.sh