Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sb/cd-then-git-can-be-written-as-git-c'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 23 Jan 2017 23:59:22 +0000
(15:59 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 23 Jan 2017 23:59:22 +0000
(15:59 -0800)
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"
t/lib-submodule-update.sh
patch
|
blob
|
history
raw
(from parent 1:
e945770
)
diff --git
a/t/lib-submodule-update.sh
b/t/lib-submodule-update.sh
index 79cdd34a540ddc7230b1aefb7fb4af5915c7085f..915eb4a7c65ca5c574beddc676bf0115990eec3f 100755
(executable)
--- 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" &&