In index.build_index_from_tree, pass the validate_path_element onto validate_path.
authorGary van der Merwe <garyvdm@gmail.com>
Mon, 11 May 2015 07:40:27 +0000 (09:40 +0200)
committerGary van der Merwe <garyvdm@gmail.com>
Mon, 11 May 2015 07:40:27 +0000 (09:40 +0200)
dulwich/index.py

index c04392efbd7525a689636328869501e616b93040..0df2d6dd711cc189eff454e860ce7c9cd9f6b635 100644 (file)
@@ -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()))