Skip to content

Commit 7af55d1

Browse files
stefanbellergitster
authored andcommitted
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>
1 parent d7dffce commit 7af55d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7411-submodule-config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ test_expect_success 'reading of local configuration' '
134134
"" submodule \
135135
>actual &&
136136
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" &&
139139
git config --unset submodule.a.path c
140140
)
141141
'

0 commit comments

Comments
 (0)