]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc-changelog: do not run extra deduction
authorMartin Liska <mliska@suse.cz>
Tue, 2 Aug 2022 08:50:07 +0000 (10:50 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 2 Aug 2022 08:50:07 +0000 (10:50 +0200)
Do not deduce changelog for root ChangeLog ('').

contrib/ChangeLog:

* gcc-changelog/git_commit.py: Do not deduce changelog for root ChangeLog.

contrib/gcc-changelog/git_commit.py

index a6b5ff04f221d683f1bfa9f2e87ca98d23218502..7f6ff87ba993aa858acbc56b4738f217322a5bc1 100755 (executable)
@@ -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)