From f7cff58fd53bdb50fef857fdae65ee1230fd0061 Mon Sep 17 00:00:00 2001 From: Dries Date: Sun, 8 Dec 2019 15:20:29 +0100 Subject: Added parsing for '@1400000000 +0000' date format as used by git commit hooks. --- git/objects/util.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git/objects/util.py') diff --git a/git/objects/util.py b/git/objects/util.py index 5dbd9822..235b520e 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -148,6 +148,8 @@ def parse_date(string_date): try: if string_date.count(' ') == 1 and string_date.rfind(':') == -1: timestamp, offset = string_date.split() + if timestamp.startswith('@'): + timestamp = timestamp[1:] timestamp = int(timestamp) return timestamp, utctz_to_altz(verify_utctz(offset)) else: -- cgit v1.2.1