t7411: quote URLs

The variables may contain white spaces, so we need to quote them. By not quoting the variables we'd end up passing multiple arguments to git config, which doesn't fail for two arguments as value. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stefan Beller committed Dec 27, 2016 at 11:36 UTC 7af55d1f2bfafbe0fbc897e6f82a36d1e460b680
1 file changed +2 -2
t/t7411-submodule-config.sh
+2 -2
@@ -134,8 +134,8 @@ test_expect_success 'reading of local configuration' '
134 "" submodule \
135 >actual &&
136 test_cmp expect_local_path actual &&
137 - git config submodule.a.url $old_a &&
138 - git config submodule.submodule.url $old_submodule &&
137 + git config submodule.a.url "$old_a" &&
138 + git config submodule.submodule.url "$old_submodule" &&
139 git config --unset submodule.a.path c
140 )
141 '