From b251185f1d896eb169f96556d573cc58a16c9211 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Thu, 6 Nov 2008 21:15:54 -0800 Subject: [PATCH] version: use the current branch when determining the automatic version Signed-off-by: David Aguilar --- cola/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cola/version.py b/cola/version.py index f3f863f4..89f3f9f5 100644 --- a/cola/version.py +++ b/cola/version.py @@ -13,7 +13,7 @@ class VersionUnavailable(ColaException): def git_describe_version(): path = sys.path[0] try: - v = git.Git.execute(['git', 'describe', '--tags', '--abbrev=4', 'master']) + v = git.Git.execute(['git', 'describe', '--tags', '--abbrev=4']) except git.GitCommandError, e: raise VersionUnavailable(str(e)) if not re.match(r'^v[0-9]', v): -- 2.11.4.GIT