Explorar o código

In index.build_index_from_tree, pass the validate_path_element onto validate_path.

Gary van der Merwe %!s(int64=10) %!d(string=hai) anos
pai
achega
8bb8db75ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/index.py

+ 1 - 1
dulwich/index.py

@@ -484,7 +484,7 @@ def build_index_from_tree(prefix, index_path, object_store, tree_id,
     index = Index(index_path)
 
     for entry in object_store.iter_tree_contents(tree_id):
-        if not validate_path(entry.path):
+        if not validate_path(entry.path, validate_path_element):
             continue
         full_path = os.path.join(prefix, entry.path.decode(sys.getfilesystemencoding()))