summaryrefslogtreecommitdiff
path: root/git/objects/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/objects/util.py')
-rw-r--r--git/objects/util.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/git/objects/util.py b/git/objects/util.py
index 0b843301..16d4c0ac 100644
--- a/git/objects/util.py
+++ b/git/objects/util.py
@@ -187,9 +187,7 @@ def parse_date(string_date: Union[str, datetime]) -> Tuple[int, int]:
offset = -int(utcoffset.total_seconds())
return int(string_date.astimezone(utc).timestamp()), offset
else:
- # should just return timestamp, 0?
- return int(string_date.astimezone(utc).timestamp()), 0
- # raise ValueError(f"string_date datetime object without tzinfo, {string_date}")
+ raise ValueError(f"string_date datetime object without tzinfo, {string_date}")
# git time
try: