From 2820e5a243d876a031e2cddd999e049c7c59ab87 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 16 Jan 2015 18:41:44 +0200 Subject: [PATCH] Fix an issue with the libraries that are git repositories // Resolve #49 --- HISTORY.rst | 2 ++ platformio/builder/tools/platformio.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 68c2dd16..52dcf346 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -8,6 +8,8 @@ Release History `platformio boards `__ command which allows to return the output in `JSON `_ format (`issue #42 `_) +* Fixed an issue with the libraries that are git repositories (`issue #49 `_) + 0.10.2 (2015-01-06) ------------------- diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index 732d71b8..10db16f4 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -139,7 +139,10 @@ def VariantDirRecursive(env, variant_dir, src_dir, duplicate=True): if not dirnames: continue for dn in dirnames: - env.VariantDir(join(variant_dir, dn), join(root, dn), duplicate) + source_dir = join(root, dn) + if ".git" in source_dir or ".svn" in source_dir: + continue + env.VariantDir(join(variant_dir, dn), source_dir, duplicate) variants.append(join(variant_dir, dn)) return variants