From 4bff1f894134a1b6ed5c5ba769607b884983ce1f Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 14 Jul 2025 11:46:23 -0400 Subject: [PATCH] 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 --- src/script/redmine-upkeep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/redmine-upkeep.py b/src/script/redmine-upkeep.py index b955052bfd4..02156a66ec6 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 -- 2.39.5