ignore .git folder in output dir

This commit is contained in:
Maximilian Keßler 2022-03-22 08:31:35 +01:00
parent d34bacc872
commit 15a129c294

View file

@ -64,15 +64,19 @@ class PyTeXBuilder:
return version
def _ignored_subfolders_in_build_dir(self) -> List[Path]:
paths = []
if self._build_target_type == PyTeXRootDirType.BUILD:
dirs = [
self.pytex_config.build_dir_specification.tex_source_root,
self.pytex_config.build_dir_specification.doc_root
]
return [
paths = [
path.absolute().resolve() for path in dirs
]
return []
paths.append(
(self.target_root / '.git').absolute().resolve()
)
return paths
def is_ignored_in_build_dir(self, path: RelativePath) -> bool:
real_path: Path = path.absolute().resolve()