diff options
Diffstat (limited to 'gbp/scripts/buildpackage_rpm.py')
-rwxr-xr-x | gbp/scripts/buildpackage_rpm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py index 831d85f2..f6a15197 100755 --- a/gbp/scripts/buildpackage_rpm.py +++ b/gbp/scripts/buildpackage_rpm.py @@ -603,7 +603,8 @@ def main(argv): 'GBP_SHA1': sha})() else: try: - tree_name = repo.describe(tree, longfmt=True, always=True) + tree_name = repo.describe(tree, longfmt=True, always=True, + abbrev=40) except GitRepositoryError: # If tree is not commit-ish, expect it to be from current HEAD tree_name = repo.describe('HEAD', longfmt=True, always=True) +\ |