Skip to content

Commit dfe338a

Browse files
phordgitster
authored andcommitted
t/t7407: fix two typos in submodule tests
In t/t7407-submodule-foreach.sh there is a typo in one of the path names given for a test step. The correct path is nested1/nested2/.git, but nested1/nested1/nested2/.git is given instead. The typo is hidden because this line also accidentally omits the && chain operator. The omitted chain also means the return values of all the previous commands in this test are also being ignored. Fix the path and add the chain operator so the entire test sequence can be properly validated. Signed-off-by: Phil Hord <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 091a6eb commit dfe338a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t7407-submodule-foreach.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ test_expect_success 'use "submodule foreach" to checkout 2nd level submodule' '
145145
git rev-parse --resolve-git-dir nested1/.git &&
146146
test_must_fail git rev-parse --resolve-git-dir nested1/nested2/.git &&
147147
git submodule foreach "git submodule update --init" &&
148-
git rev-parse --resolve-git-dir nested1/nested1/nested2/.git
148+
git rev-parse --resolve-git-dir nested1/nested2/.git &&
149149
test_must_fail git rev-parse --resolve-git-dir nested1/nested2/nested3/.git
150150
)
151151
'

0 commit comments

Comments
 (0)