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.
This commit is contained in:
Martin Liska 2022-08-02 10:50:07 +02:00
parent c30bbd4d16
commit c2d0742938

View File

@ -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)