From ccfa8ce82c8d41f5bf91a7d4507cb9c1300b8a28 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Nov 2009 04:53:04 -0500 Subject: Fix to how version numbers are generated --- acprep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'acprep') diff --git a/acprep b/acprep index a73e81f0..302a6368 100755 --- a/acprep +++ b/acprep @@ -385,7 +385,7 @@ class PrepareBuild(CommandLineApp): def current_version(self): if not self.current_ver: if exists('.git') and isdir('.git'): - date = self.get_stdout('git', 'log', '--format=%ci', 'HEAD^..HEAD') + date = self.get_stdout('git', 'log', '--format=%ci', '-1', 'HEAD') date = re.sub(" [-+][0-9][0-9][0-9][0-9]$", "", date) when = datetime.datetime.strptime(date, "%Y-%m-%d %H:%M:%S") self.current_ver = when.strftime("%Y%m%d_%H%M%S") -- cgit v1.2.3