summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xacprep2
1 files changed, 1 insertions, 1 deletions
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")