diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-07-16 15:32:19 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-07-16 15:32:19 +0300 |
commit | 47a11df1b006d900d6b168a64640d459784d42cb (patch) | |
tree | 364d6dd3473fcf59779abfee7b410fee96a44903 /obbench | |
parent | c3b04868104fe6972fc1dd5bfea1d8e473eb96c9 (diff) | |
download | obnam-benchmarks-47a11df1b006d900d6b168a64640d459784d42cb.tar.gz |
Report date correctly
Diffstat (limited to 'obbench')
-rwxr-xr-x | obbench | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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): |