This commit is contained in:
Paul Gauthier 2024-10-25 12:49:52 -07:00
parent 01b5bdc829
commit c16224b37a
2 changed files with 6 additions and 4 deletions

View file

@ -381,10 +381,10 @@ class InputOutput:
watcher.start() watcher.start()
dump(watcher) dump(watcher)
try:
rel_fnames = list(rel_fnames) rel_fnames = list(rel_fnames)
show = "" show = ""
if rel_fnames: if rel_fnames:
rel_read_only_fnames = [ rel_read_only_fnames = [
get_rel_fname(fname, root) for fname in (abs_read_only_fnames or []) get_rel_fname(fname, root) for fname in (abs_read_only_fnames or [])
] ]

View file

@ -73,6 +73,8 @@ def watch_source_files(
and returns True if it should be ignored and returns True if it should be ignored
""" """
root = Path(directory) root = Path(directory)
dump(root)
gitignore_paths = [Path(g) for g in gitignores] if gitignores else [] gitignore_paths = [Path(g) for g in gitignores] if gitignores else []
gitignore_spec = load_gitignores(gitignore_paths) gitignore_spec = load_gitignores(gitignore_paths)
root_abs = root.absolute() root_abs = root.absolute()