changelog: Allow wildcard pattern only.

contrib/ChangeLog:

	* gcc-changelog/git_commit.py: Allow wildcard pattern only.
This commit is contained in:
Martin Liska 2020-11-30 10:37:57 +01:00
parent a5ad5d5c47
commit fbbce1c6e9

View File

@ -560,7 +560,7 @@ class GitCommit:
mentioned_patterns = []
used_patterns = set()
for entry in self.changelog_entries:
if not entry.files:
if not entry.files and not entry.file_patterns:
msg = 'no files mentioned for ChangeLog in directory'
self.errors.append(Error(msg, entry.folder))
assert not entry.folder.endswith('/')