diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-04-18 10:46:23 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-04-18 11:50:05 +0300 |
commit | d1cdbd22778c040a5b6620d463092c735262d2e7 (patch) | |
tree | 75566ff3f53cd7e47097cacec4818b102c0c6c3a /gbp/scripts/buildpackage_rpm.py | |
parent | 766d0e05d024f8d287a2e14c7ea1aad9e296d0cc (diff) | |
download | git-buildpackage-d1cdbd22778c040a5b6620d463092c735262d2e7.tar.gz git-buildpackage-d1cdbd22778c040a5b6620d463092c735262d2e7.tar.bz2 git-buildpackage-d1cdbd22778c040a5b6620d463092c735262d2e7.zip |
GitRepository: add describe() method
Change GitRepository.find_tag() to its original simple version.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/scripts/buildpackage_rpm.py')
-rwxr-xr-x | gbp/scripts/buildpackage_rpm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py index 33c5f447..831d85f2 100755 --- a/gbp/scripts/buildpackage_rpm.py +++ b/gbp/scripts/buildpackage_rpm.py @@ -603,10 +603,10 @@ def main(argv): 'GBP_SHA1': sha})() else: try: - tree_name = repo.find_tag(tree, longfmt=True, always=True) + tree_name = repo.describe(tree, longfmt=True, always=True) except GitRepositoryError: # If tree is not commit-ish, expect it to be from current HEAD - tree_name = repo.find_tag('HEAD', longfmt=True, always=True) +\ + tree_name = repo.describe('HEAD', longfmt=True, always=True) +\ '-dirty' # Put 'VCS:' tag to .spec spec.set_tag('VCS', None, |