From afba7ef32aabb37c343c26d739fa0d8015a47030 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 25 Jun 2012 17:46:46 +0300 Subject: [PATCH] Fixed bug in getting nearest tag for the commit in changelog mode. Previously HEAD is used to find this tag, which is not correct. Change-Id: Ifc9ad7377be2ec5fdc33253b7977889398f7fa93 --- gitbuildsys/cmd_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitbuildsys/cmd_changelog.py b/gitbuildsys/cmd_changelog.py index 4e69b97..3d69008 100644 --- a/gitbuildsys/cmd_changelog.py +++ b/gitbuildsys/cmd_changelog.py @@ -60,7 +60,7 @@ def get_version(git_repo, commit): """ version = git_repo.rev_parse(commit, ['--short']) try: - version = "%s@%s" % (git_repo.find_tag('HEAD'), version) + version = "%s@%s" % (git_repo.find_tag(commit), version) except GitRepositoryError: pass -- 2.7.4