Skip to content

Commit

Permalink
Merge pull request #2674 from theotherjimmy/correct_repo_files
Browse files Browse the repository at this point in the history
tools - Correct adding repo_files
  • Loading branch information
sg- authored Sep 16, 2016
2 parents bd4d29d + f48aa24 commit 054f232
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/toolchains/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 054f232

Please sign in to comment.