aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-11-30 10:37:57 +0100
committerMartin Liska <mliska@suse.cz>2020-11-30 10:40:36 +0100
commitfbbce1c6e98dec378955b1a591d2dff31caa01f5 (patch)
treea938af54c1dbbf9fe9d23098410e6dc4c8f9341b /contrib
parenta5ad5d5c478ee7bebf057161bb8715ee7d286875 (diff)
downloadgcc-fbbce1c6e98dec378955b1a591d2dff31caa01f5.zip
gcc-fbbce1c6e98dec378955b1a591d2dff31caa01f5.tar.gz
gcc-fbbce1c6e98dec378955b1a591d2dff31caa01f5.tar.bz2
changelog: Allow wildcard pattern only.
contrib/ChangeLog: * gcc-changelog/git_commit.py: Allow wildcard pattern only.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/gcc-changelog/git_commit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index d0ac23c..5366d95 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -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('/')