diff options
author | Martin Liska <mliska@suse.cz> | 2021-05-12 10:37:12 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-05-12 10:37:12 +0200 |
commit | 5caadfbde2c0d4cb97db23bab74b52c56bb1be9e (patch) | |
tree | a9d247b2466bc973eb737c083886085f8343192c /contrib/gcc-changelog/git_commit.py | |
parent | f5f1838435400b837c8677c53a611e2dc6d56442 (diff) | |
download | gcc-5caadfbde2c0d4cb97db23bab74b52c56bb1be9e.zip gcc-5caadfbde2c0d4cb97db23bab74b52c56bb1be9e.tar.gz gcc-5caadfbde2c0d4cb97db23bab74b52c56bb1be9e.tar.bz2 |
gcc-changelog: respect branch in git_update_version.py.
contrib/ChangeLog:
* gcc-changelog/git_commit.py: Simplify needle lookup.
* gcc-changelog/git_update_version.py: Pass ref_name to
parse_git_revisions.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
-rwxr-xr-x | contrib/gcc-changelog/git_commit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index c70279e..8f9b266 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -394,7 +394,7 @@ class GitCommit: self.changelog_locations = list(default_changelog_locations) if ref_name: version = sys.maxsize - if ref_name.startswith('refs/heads/releases/gcc-'): + if 'releases/gcc-' in ref_name: version = int(ref_name.split('-')[-1]) if version >= 12: # HSA and BRIG were removed in GCC 12 |