Explorar el Código

Make sure mode is initialized.

Jelmer Vernooij hace 15 años
padre
commit
f65c271ce7
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      dulwich/object_store.py

+ 1 - 0
dulwich/object_store.py

@@ -623,6 +623,7 @@ def tree_lookup_path(lookup_obj, root_sha, path):
     """
     parts = path.split("/")
     sha = root_sha
+    mode = None
     for p in parts:
         obj = lookup_obj(sha)
         if type(obj) is not Tree: