summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-05 14:27:58 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-05 14:27:58 -0500
commit67ce33430c1f37f0fa7da62e5bd055c5a00b614d (patch)
tree3357a0a2fd100f8dbf65e01ae1272770852c3e23 /acprep
parent15555d497f56e4b4d39e9a14f74b2c82cce52b90 (diff)
parent09ace752d604d5afce698f7cc240e1a83cee934d (diff)
downloadfork-ledger-67ce33430c1f37f0fa7da62e5bd055c5a00b614d.tar.gz
fork-ledger-67ce33430c1f37f0fa7da62e5bd055c5a00b614d.tar.bz2
fork-ledger-67ce33430c1f37f0fa7da62e5bd055c5a00b614d.zip
Merge branch 'next'
Diffstat (limited to 'acprep')
-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")