Skip to content

Commit 054f232

Browse files
authored
Merge pull request #2674 from theotherjimmy/correct_repo_files
tools - Correct adding repo_files
2 parents bd4d29d + f48aa24 commit 054f232

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)