mirror of https://github.com/zulip/zulip.git
commit-message-list: Don't print anything if no commits.
This fixes some output spam when running the linter at upstream/master.
This commit is contained in:
parent
ea7ce7e0da
commit
895b5642f1
|
@ -12,4 +12,9 @@ else
|
|||
range="upstream/master..HEAD"
|
||||
fi
|
||||
|
||||
gitlint --commits $range
|
||||
commits=$(git log "$range" | wc -l)
|
||||
if [ "$commits" -gt 0 ]; then
|
||||
# Only run gitlint with non-empty commit lists, to avoid a printed
|
||||
# warning.
|
||||
gitlint --commits "$range"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue