Ver Fonte

Support printing directories in check-ignore.

Jelmer Vernooij há 7 anos atrás
pai
commit
0e8472929f
1 ficheiros alterados com 0 adições e 2 exclusões
  1. 0 2
      dulwich/porcelain.py

+ 0 - 2
dulwich/porcelain.py

@@ -1123,8 +1123,6 @@ def check_ignore(repo, paths, no_index=False):
         index = r.open_index()
         ignore_manager = IgnoreFilterManager.from_repo(r)
         for path in paths:
-            if os.path.isdir(path):
-                continue
             if os.path.isabs(path):
                 path = os.path.relpath(path, r.path)
             if not no_index and path_to_tree_path(r.path, path) in index: