Skip to content

Commit 7b438f6

Browse files
jrngitster
authored andcommitted
test: add missing "&&" after echo command
This test wants to modify a file and commit the change, but because of a missing separator between commands it is parsed as a single "echo" command. Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b1af963 commit 7b438f6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

t/t7501-commit.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ test_expect_success \
6060

6161
test_expect_success \
6262
"next commit" \
63-
"echo 'bongo bongo bongo' >file \
63+
"echo 'bongo bongo bongo' >file && \
6464
git commit -m next -a"
6565

6666
test_expect_success \
@@ -172,11 +172,12 @@ test_expect_success \
172172
# easier to isolate bugs.
173173

174174
cat >expected <<\EOF
175-
72c0dc9855b0c9dadcbfd5a31cab072e0cb774ca
176-
9b88fc14ce6b32e3d9ee021531a54f18a5cf38a2
177-
3536bbb352c3a1ef9a420f5b4242d48578b92aa7
178-
d381ac431806e53f3dd7ac2f1ae0534f36d738b9
179-
4fd44095ad6334f3ef72e4c5ec8ddf108174b54a
175+
285fcf7ec0d61b14249dfdb4c1e1fe03eaf15ee0
176+
0b8148b9afce917b87d71199b900466dc8ea8b6e
177+
43fb8826314939ce79a856face7953557fdca3d1
178+
eaa04bc3ae0f0b003f7f1d86bf869ec5d73eaf3e
179+
ee1963b250ee0f02a3fe37be0e4a02bb5af6a1ad
180+
b49f306003c627361a0304d151a6b4c8b26af6a1
180181
402702b49136e7587daa9280e91e4bb7cb2179f7
181182
EOF
182183

0 commit comments

Comments
 (0)