diff --git a/dulwich/objects.py b/dulwich/objects.py index 74ade5c1e..92456a584 100644 --- a/dulwich/objects.py +++ b/dulwich/objects.py @@ -27,6 +27,7 @@ import os import posixpath import stat +import re from typing import ( Optional, Dict, @@ -70,6 +71,11 @@ S_IFGITLINK = 0o160000 +# Intentionally flexible to support various types of brokenness +_TIME_ENTRY_RE = re.compile( + b"^(?P.*) (?P