t2405: use git -C and test_commit -C instead of subshells
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Tue, 21 Jan 2020 15:01:15 +0000 (15:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jan 2020 21:36:05 +0000 (13:36 -0800)
commit4eaadc8493704357a4fac8d7dc8207340aa79019
tree20a7b3d7d1951571bfa9cf2c76eebfbf6be4411e
parent773c60a45e01f1e6631afe1cce9da3ed67d37a3a
t2405: use git -C and test_commit -C instead of subshells

The subshells used in the setup phase of this test are unnecessary.

Remove them by using 'git -C' and 'test_commit -C'.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2405-worktree-submodule.sh