diff options
-rw-r--r-- | meta/lib/oe/copy_buildsystem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe/copy_buildsystem.py index dd0e6641e3..7b9a0ee065 100644 --- a/meta/lib/oe/copy_buildsystem.py +++ b/meta/lib/oe/copy_buildsystem.py | |||
@@ -8,7 +8,7 @@ def _smart_copy(src, dest): | |||
8 | # source is a file or a directory. | 8 | # source is a file or a directory. |
9 | mode = os.stat(src).st_mode | 9 | mode = os.stat(src).st_mode |
10 | if stat.S_ISDIR(mode): | 10 | if stat.S_ISDIR(mode): |
11 | shutil.copytree(src, dest, symlinks=True) | 11 | shutil.copytree(src, dest, symlinks=True, ignore=shutil.ignore_patterns('.git')) |
12 | else: | 12 | else: |
13 | shutil.copyfile(src, dest) | 13 | shutil.copyfile(src, dest) |
14 | shutil.copymode(src, dest) | 14 | shutil.copymode(src, dest) |