diff options
| author | Junio C Hamano <gitster@pobox.com> | 2017-01-23 15:59:22 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-01-23 15:59:22 -0800 |
| commit | e11c8261ba70f16b86ec662c027c9be649d9aea4 (patch) | |
| tree | cbd25a5b8fc7ece61ba6486f784170fe08fc3e04 | |
| parent | Merge branch 'ad/bisect-terms' (diff) | |
| parent | lib-submodule-update.sh: reduce use of subshell by using "git -C" (diff) | |
| download | git-e11c8261ba70f16b86ec662c027c9be649d9aea4.tar.gz git-e11c8261ba70f16b86ec662c027c9be649d9aea4.zip | |
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"
| -rwxr-xr-x | t/lib-submodule-update.sh | 5 |
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" && |
