]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/redmine-upkeep: codify commit abbreviation 64486/head
authorPatrick Donnelly <pdonnell@ibm.com>
Mon, 14 Jul 2025 15:46:23 +0000 (11:46 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 14 Jul 2025 16:00:18 +0000 (12:00 -0400)
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 <pdonnell@ibm.com>
src/script/redmine-upkeep.py

index b955052bfd4917a0e4a75899c6bb0768c57e351c..02156a66ec675e90fdf1763be12001a26ffff8fc 100755 (executable)
@@ -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