From 47a11df1b006d900d6b168a64640d459784d42cb Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 16 Jul 2015 15:32:19 +0300 Subject: Report date correctly --- obbench | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'obbench') diff --git a/obbench b/obbench index 7c15e05..49bac06 100755 --- a/obbench +++ b/obbench @@ -305,10 +305,13 @@ class BenchmarkResult(object): output = cliapp.runcmd(['git', 'rev-parse', 'HEAD'], cwd=checkout) self._dict['commit_id'] = output.strip()[:7] - output = cliapp.runcmd(['git', 'show', 'HEAD'], cwd=checkout) + self._dict['date'] = 'unknown' + output = cliapp.runcmd( + ['git', 'show', '--date=iso', 'HEAD'], + cwd=checkout) for line in output.splitlines(): if line.startswith('Date:'): - self._dict['date'] = line[len('Date:')].strip() + self._dict['date'] = line[len('Date:'):].strip() break def add_step(self, step_info): -- cgit v1.2.1