fetch tests: double quote a variable for interpolation

If the $cmdline variable contains arguments with spaces they won't be interpolated correctly, since the body of the test is single quoted, and because test-lib.sh does its own eval(). This will be used in a subsequent commit to pass arguments that need to be quoted to git-fetch, i.e. a file:// path to fetch, which will have a space in it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Feb 9, 2018 at 20:32 UTC 82f34e03e91af42a020f15a1d248bc75785c565a
1 file changed +1 -1
t/t5510-fetch.sh
+1 -1
@@ -578,7 +578,7 @@ test_configured_prune () {
578 set_config_tristate fetch.prune $fetch_prune &&
579 set_config_tristate remote.origin.prune $remote_origin_prune &&
580
581 - git fetch $cmdline &&
581 + git fetch '"$cmdline"' &&
582 case "$expected_branch" in
583 pruned)
584 test_must_fail git rev-parse --verify refs/remotes/origin/newbranch