aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_commit.py
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-08-02 10:50:07 +0200
committerMartin Liska <mliska@suse.cz>2022-08-02 10:50:07 +0200
commitc2d074293824cf8d4b24f00d94013124214e6fe5 (patch)
treed03da3f73e4fe6a9b4fd07f0d7c9e9d3f45cef42 /contrib/gcc-changelog/git_commit.py
parentc30bbd4d169c98b7535a30384c6a971ee875fa44 (diff)
downloadgcc-c2d074293824cf8d4b24f00d94013124214e6fe5.zip
gcc-c2d074293824cf8d4b24f00d94013124214e6fe5.tar.gz
gcc-c2d074293824cf8d4b24f00d94013124214e6fe5.tar.bz2
gcc-changelog: do not run extra deduction
Do not deduce changelog for root ChangeLog (''). contrib/ChangeLog: * gcc-changelog/git_commit.py: Do not deduce changelog for root ChangeLog.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
-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 a6b5ff0..7f6ff87 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -626,7 +626,7 @@ class GitCommit:
def deduce_changelog_locations(self):
for entry in self.changelog_entries:
- if not entry.folder:
+ if entry.folder is None:
changelog = None
for file in entry.files:
location = self.get_file_changelog_location(file)