Skip to content

Commit f48aa24

Browse files
committed
Correct adding repo_files
1 parent e9d0fbd commit f48aa24

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
@@ -611,7 +611,10 @@ def _add_file(self, file_path, resources, base_path, exclude_paths=None):
611611
elif ext == '.bld':
612612
resources.lib_builds.append(file_path)
613613

614-
elif file == '.hgignore':
614+
elif basename(file_path) == '.hgignore':
615+
resources.repo_files.append(file_path)
616+
617+
elif basename(file_path) == '.gitignore':
615618
resources.repo_files.append(file_path)
616619

617620
elif ext == '.hex':

0 commit comments

Comments
 (0)