From f48aa248b7a616133df05329f1a0b0823b40f50c Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Mon, 12 Sep 2016 16:19:55 -0500 Subject: [PATCH] Correct adding repo_files --- tools/toolchains/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index ed351006da5..3252c21e1bd 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -611,7 +611,10 @@ def _add_file(self, file_path, resources, base_path, exclude_paths=None): elif ext == '.bld': resources.lib_builds.append(file_path) - elif file == '.hgignore': + elif basename(file_path) == '.hgignore': + resources.repo_files.append(file_path) + + elif basename(file_path) == '.gitignore': resources.repo_files.append(file_path) elif ext == '.hex':