From: Patrick Donnelly Date: Mon, 14 Jul 2025 15:46:23 +0000 (-0400) Subject: script/redmine-upkeep: codify commit abbreviation X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4bff1f894134a1b6ed5c5ba769607b884983ce1f;p=ceph.git script/redmine-upkeep: codify commit abbreviation As it can vary depending on repository size. On my development machine, it produces 8 character abbreviations but the github action is producing 7 character abbreviations. This triggers unnecessary updates. Signed-off-by: Patrick Donnelly --- diff --git a/src/script/redmine-upkeep.py b/src/script/redmine-upkeep.py index b955052bfd491..02156a66ec675 100755 --- a/src/script/redmine-upkeep.py +++ b/src/script/redmine-upkeep.py @@ -382,7 +382,7 @@ class RedmineUpkeep: try: issue_update.logger.info(f"Running git describe for commit {commit}") - ref = issue_update.git_repo.git.describe('--always', commit) + ref = issue_update.git_repo.git.describe('--always', '--abbrev=10', commit) issue_update.logger.info(f"Git describe output: {ref}") changed = issue_update.add_or_update_custom_field(REDMINE_CUSTOM_FIELD_ID_FIXED_IN, ref) return changed