Forráskód Böngészése

Make sure mode is initialized.

Jelmer Vernooij 15 éve
szülő
commit
f65c271ce7
1 módosított fájl, 1 hozzáadás és 0 törlés
  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("/")
     parts = path.split("/")
     sha = root_sha
     sha = root_sha
+    mode = None
     for p in parts:
     for p in parts:
         obj = lookup_obj(sha)
         obj = lookup_obj(sha)
         if type(obj) is not Tree:
         if type(obj) is not Tree: