summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-23 15:59:22 -0800
committerJunio C Hamano <gitster@pobox.com>2017-01-23 15:59:22 -0800
commite11c8261ba70f16b86ec662c027c9be649d9aea4 (patch)
treecbd25a5b8fc7ece61ba6486f784170fe08fc3e04 /t
parente94577039564ace7b7fb8186d170ea7350f55e4c (diff)
parent3290fe6dd2a7e2bb35ac760443335dec58802ff1 (diff)
downloadgit-e11c8261ba70f16b86ec662c027c9be649d9aea4.tar.gz
Merge branch 'sb/cd-then-git-can-be-written-as-git-c'
Test clean-up. * sb/cd-then-git-can-be-written-as-git-c: lib-submodule-update.sh: reduce use of subshell by using "git -C"
Diffstat (limited to 't')
-rwxr-xr-xt/lib-submodule-update.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/lib-submodule-update.sh b/t/lib-submodule-update.sh
index 79cdd34a54..915eb4a7c6 100755
--- a/t/lib-submodule-update.sh
+++ b/t/lib-submodule-update.sh
@@ -69,10 +69,7 @@ create_lib_submodule_repo () {
git checkout -b "replace_sub1_with_directory" "add_sub1" &&
git submodule update &&
- (
- cd sub1 &&
- git checkout modifications
- ) &&
+ git -C sub1 checkout modifications &&
git rm --cached sub1 &&
rm sub1/.git* &&
git config -f .gitmodules --remove-section "submodule.sub1" &&