summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes/gitpkgv.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/classes/gitpkgv.bbclass')
-rw-r--r--meta-oe/classes/gitpkgv.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-oe/classes/gitpkgv.bbclass b/meta-oe/classes/gitpkgv.bbclass
index 22609f584..ab591bd45 100644
--- a/meta-oe/classes/gitpkgv.bbclass
+++ b/meta-oe/classes/gitpkgv.bbclass
@@ -7,8 +7,8 @@
7# NN equals the total number of revs up to SRCREV 7# NN equals the total number of revs up to SRCREV
8# GITHASH is SRCREV's (full) hash 8# GITHASH is SRCREV's (full) hash
9# 9#
10# - GITPKGVTAG which is the output of 'git describe' allowing for 10# - GITPKGVTAG which is the output of 'git describe --tags --exact-match'
11# automatic versioning 11# allowing for automatic versioning
12# 12#
13# gitpkgv.bbclass assumes the git repository has been cloned, and 13# gitpkgv.bbclass assumes the git repository has been cloned, and
14# contains SRCREV. So ${GITPKGV} and ${GITPKGVTAG} should never be 14# contains SRCREV. So ${GITPKGV} and ${GITPKGVTAG} should never be
@@ -103,7 +103,7 @@ def get_git_pkgv(d, use_tags):
103 if use_tags: 103 if use_tags:
104 try: 104 try:
105 output = bb.fetch2.runfetchcmd( 105 output = bb.fetch2.runfetchcmd(
106 "git --git-dir=%(repodir)s describe %(rev)s 2>/dev/null" 106 "git --git-dir=%(repodir)s describe %(rev)s --tags --exact-match 2>/dev/null"
107 % vars, d, quiet=True).strip() 107 % vars, d, quiet=True).strip()
108 ver = gitpkgv_drop_tag_prefix(output) 108 ver = gitpkgv_drop_tag_prefix(output)
109 except Exception: 109 except Exception: