summaryrefslogtreecommitdiff
path: root/t/t5526-fetch-submodules.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-23 21:13:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-23 21:13:13 (GMT)
commit45121b9e302bb8640482c2add01fb6cfb1681534 (patch)
treea67d53fc4b319259d3a181a7b3669cd6447a6f54 /t/t5526-fetch-submodules.sh
parent85c81a74e24fd83bbe7a75aa4ce6a5b3dfa1b884 (diff)
parent2aac933c624c1a28b48eea0fd138117e1b9bc8c6 (diff)
downloadgit-45121b9e302bb8640482c2add01fb6cfb1681534.zip
git-45121b9e302bb8640482c2add01fb6cfb1681534.tar.gz
git-45121b9e302bb8640482c2add01fb6cfb1681534.tar.bz2
Merge branch 'hv/t5526-andand-chain-fix'
Test fix. * hv/t5526-andand-chain-fix: t5526: fix some broken && chains
Diffstat (limited to 't/t5526-fetch-submodules.sh')
-rwxr-xr-xt/t5526-fetch-submodules.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t5526-fetch-submodules.sh b/t/t5526-fetch-submodules.sh
index 162baf1..42251f7 100755
--- a/t/t5526-fetch-submodules.sh
+++ b/t/t5526-fetch-submodules.sh
@@ -193,7 +193,7 @@ test_expect_success "recurseSubmodules=true propagates into submodules" '
add_upstream_commit &&
(
cd downstream &&
- git config fetch.recurseSubmodules true
+ git config fetch.recurseSubmodules true &&
git fetch >../actual.out 2>../actual.err
) &&
test_must_be_empty actual.out &&
@@ -218,7 +218,7 @@ test_expect_success "--no-recurse-submodules overrides config setting" '
add_upstream_commit &&
(
cd downstream &&
- git config fetch.recurseSubmodules true
+ git config fetch.recurseSubmodules true &&
git fetch --no-recurse-submodules >../actual.out 2>../actual.err
) &&
! test -s actual.out &&
@@ -232,7 +232,7 @@ test_expect_success "Recursion doesn't happen when no new commits are fetched in
cd submodule &&
git config --unset fetch.recurseSubmodules
) &&
- git config --unset fetch.recurseSubmodules
+ git config --unset fetch.recurseSubmodules &&
git fetch >../actual.out 2>../actual.err
) &&
! test -s actual.out &&
@@ -312,7 +312,7 @@ test_expect_success "Recursion picks up all submodules when necessary" '
) &&
head1=$(git rev-parse --short HEAD^) &&
git add subdir/deepsubmodule &&
- git commit -m "new deepsubmodule"
+ git commit -m "new deepsubmodule" &&
head2=$(git rev-parse --short HEAD) &&
echo "Fetching submodule submodule" > ../expect.err.sub &&
echo "From $pwd/submodule" >> ../expect.err.sub &&