]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "contrib/gcc-changelog: Check whether revert-commit exists"
authorTobias Burnus <tobias@codesourcery.com>
Thu, 7 Sep 2023 11:00:55 +0000 (13:00 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 7 Sep 2023 11:00:55 +0000 (13:00 +0200)
This reverts commit ffffffffffffffffffffffffffffffffffffffff.

This checks whether the pre-commit hook of the mentioned commit
triggers and rejects this commit due to the bogus commit hash.

This commit actually does not revert that patch but fixes that
patch as 'technically' was accidently re-added in the second
commit.

contrib/gcc-changelog/git_commit.py

index 4f1bd4d72930a55c77fe8fcc1be8f021bf2eba70..9110317a759a00afc80f50be31f65c1e92988ec6 100755 (executable)
@@ -331,7 +331,7 @@ class GitCommit:
         if self.revert_commit:
             # The following happens for get_email.py:
             if not self.commit_to_info_hook:
-                self.warnings.append(f"Invoked script can technically not obtain info about "
+                self.warnings.append(f"Invoked script can not obtain info about "
                                      f"reverted commits such as '{self.revert_commit}'")
                 return
             self.info = self.commit_to_info_hook(self.revert_commit)
@@ -810,7 +810,7 @@ class GitCommit:
                     if self.commit_to_info_hook:
                         self.warnings.append(f"Cherry-picked commit not found: '{self.cherry_pick_commit}'")
                     else:
-                        self.warnings.append(f"Invoked script can technically not obtain info about "
+                        self.warnings.append(f"Invoked script can not obtain info about "
                                              f"cherry-picked commits such as '{self.revert_commit}'")
                     timestamp = current_timestamp
             elif not timestamp or use_commit_ts: