Skip to content

Commit c5004d3

Browse files
authored
Docs: Handle long commit messages in [skip ci] example (#11601)
1 parent b5eaf5d commit c5004d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/user/build-customization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ This other example shows how to cancel a build if the commit message contains ``
183183
post_checkout:
184184
# Use `git log` to check if the latest commit contains "skip ci",
185185
# in that case exit the command with 183 to cancel the build
186-
- (git --no-pager log --pretty="tformat:%s -- %b" -1 | grep -viq "skip ci") || exit 183
186+
- (git --no-pager log --pretty="tformat:%s -- %b" -1 | paste -s -d " " | grep -viq "skip ci") || exit 183
187187
188188
189189
Generate documentation from annotated sources with Doxygen

0 commit comments

Comments
 (0)