diff options
-rwxr-xr-x | acprep | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |