← Back to team overview

dulwich-users team mailing list archive

[PATCH 2 of 2] objects.parse_tree: drop invalid assertion

 

Change-Id: I2eedb2d4d8f7d27e15d9acc65adb6fa272a7d6ce

diff --git a/dulwich/objects.py b/dulwich/objects.py
--- a/dulwich/objects.py
+++ b/dulwich/objects.py
@@ -705,7 +705,6 @@
     while count < l:
         mode_end = text.index(' ', count)
         mode_text = text[count:mode_end]
-        assert mode_text[0] != '0'
         try:
             mode = int(mode_text, 8)
         except ValueError:



References