From fbbce1c6e98dec378955b1a591d2dff31caa01f5 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 30 Nov 2020 10:37:57 +0100 Subject: [PATCH] changelog: Allow wildcard pattern only. contrib/ChangeLog: * gcc-changelog/git_commit.py: Allow wildcard pattern only. --- contrib/gcc-changelog/git_commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('/') -- 2.7.4