Преглед на файлове

In index.build_index_from_tree, pass the validate_path_element onto validate_path.

Gary van der Merwe преди 10 години
родител
ревизия
8bb8db75ff
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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()))