Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Utils
tito
0006-add-alternative-way-to-search-for-an-tag.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0006-add-alternative-way-to-search-for-an-tag.patch of Package tito
From d68a6f6213e7e4827e615bedff481e865de62c43 Mon Sep 17 00:00:00 2001 From: Michael Calmer <mc@suse.de> Date: Sat, 5 Mar 2016 17:36:18 +0100 Subject: [PATCH 6/9] add alternative way to search for an tag --- src/tito/common.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) Index: tito-tito-0.6.11-1/src/tito/common.py =================================================================== --- tito-tito-0.6.11-1.orig/src/tito/common.py +++ tito-tito-0.6.11-1/src/tito/common.py @@ -906,8 +906,13 @@ def get_commit_count(tag, commit_id): # return 0 # else: # parse the count from the output - (status, output) = getstatusoutput( - "git describe --match=%s %s" % (tag, commit_id)) + try: + (status, output) = getstatusoutput( + "git describe --match=%s %s" % (tag, commit_id)) + except Exception as e: + # maybe a bad tag - try with --tags + (status, output) = getstatusoutput( + "git describe --tags --match=%s %s" % (tag, commit_id)) debug("tag - %s" % tag) debug("output - %s" % output)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor