t5710: simplify 'mkdir X' followed by 'git -C X init'

It's simpler and more efficient to just use `git init client` instead of `mkdir client && git -C client init`. So let's replace the latter with the former. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Couder committed May 27, 2026 at 16:08 UTC 4ed1ffe680d1ad0fe7436c9816262b6abb518629
1 file changed +2 -4
t/t5710-promisor-remote-capability.sh
+2 -4
@@ -177,8 +177,7 @@ test_expect_success "init + fetch with promisor.advertise set to 'true'" '
177 git -C server config promisor.advertise true &&
178 test_when_finished "rm -rf client" &&
179
180 - mkdir client &&
181 - git -C client init &&
180 + git init client &&
181 git -C client config remote.lop.promisor true &&
182 git -C client config remote.lop.fetch "+refs/heads/*:refs/remotes/lop/*" &&
183 git -C client config remote.lop.url "$TRASH_DIRECTORY_URL/lop" &&
@@ -231,8 +230,7 @@ test_expect_success "init + fetch two promisors but only one advertised" '
230 # Create a promisor that will be configured but not be used
231 git init --bare unused_lop &&
232
234 - mkdir client &&
235 - git -C client init &&
233 + git init client &&
234 git -C client config remote.unused_lop.promisor true &&
235 git -C client config remote.unused_lop.fetch "+refs/heads/*:refs/remotes/unused_lop/*" &&
236 git -C client config remote.unused_lop.url "$TRASH_DIRECTORY_URL/unused_lop" &&