mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
tidy command now ignores files in subdirectories of ignored directories
This commit is contained in:
parent
4fafcb121f
commit
be98fc4c59
1 changed files with 1 additions and 1 deletions
|
@ -636,7 +636,7 @@ def get_file_list(directory, only_changed_files=False, exclude_dirs=[]):
|
|||
args = ["git", "ls-files", "--others", "--exclude-standard", directory]
|
||||
file_list += subprocess.check_output(args)
|
||||
for f in file_list.splitlines():
|
||||
if os.path.join('.', os.path.dirname(f)) not in exclude_dirs:
|
||||
if not any(os.path.join('.', os.path.dirname(f)).startswith(path) for path in exclude_dirs):
|
||||
yield os.path.join('.', f)
|
||||
elif exclude_dirs:
|
||||
for root, dirs, files in os.walk(directory, topdown=True):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue