Skip to content

Commit 694492c

Browse files
committed
Correct check for repo_files
1 parent 76e9d58 commit 694492c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/toolchains/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,10 @@ def _add_file(self, file_path, resources, base_path, exclude_paths=None):
594594
elif ext == '.bld':
595595
resources.lib_builds.append(file_path)
596596

597-
elif file == '.hgignore':
597+
elif basename(file_path) == '.hgignore':
598+
resources.repo_files.append(file_path)
599+
600+
elif basename(file_path) == '.gitignore':
598601
resources.repo_files.append(file_path)
599602

600603
elif ext == '.hex':

0 commit comments

Comments
 (0)