diff --git a/src/e3/anod/checkout.py b/src/e3/anod/checkout.py index 887f5b29..98cebe93 100644 --- a/src/e3/anod/checkout.py +++ b/src/e3/anod/checkout.py @@ -114,7 +114,7 @@ def update_external( the list of files to ignore. """ if os.path.isdir(self.working_dir): - old_commit = get_filetree_state(self.working_dir) + old_commit = get_filetree_state(self.working_dir, ignore_hidden=False) else: old_commit = "" ignore_list: list[str] = [] @@ -187,7 +187,7 @@ def update_external( ignore=list(VCS_IGNORE_LIST) + ignore_list, ) - new_commit = get_filetree_state(self.working_dir) + new_commit = get_filetree_state(self.working_dir, ignore_hidden=False) if new_commit == old_commit: return ReturnValue.unchanged, old_commit, new_commit else: diff --git a/src/e3/fingerprint.py b/src/e3/fingerprint.py index d95b45d8..1f5aeebb 100644 --- a/src/e3/fingerprint.py +++ b/src/e3/fingerprint.py @@ -75,7 +75,9 @@ def add_dir(self, path: str) -> None: :param path: a path to a directory """ if os.path.isdir(path): - self.elements[os.path.abspath(path)] = get_filetree_state(path) + self.elements[os.path.abspath(path)] = get_filetree_state( + path, ignore_hidden=False + ) else: self.elements[os.path.abspath(path)] = ""