浏览代码

Make sure mode is initialized.

Jelmer Vernooij 15 年之前
父节点
当前提交
f65c271ce7
共有 1 个文件被更改,包括 1 次插入0 次删除
  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: