Skip to content

Commit 4ebe743

Browse files
authored
don't copy .git path to recipe meta to avoid configuration errors (#68)
Fixes intermittent configuration errors when copying the contents of a `.git` path inside a recipe (if present) to the meta data in the image.
1 parent f367d76 commit 4ebe743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackinator/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,4 +240,4 @@ def generate(self, recipe):
240240
meta_recipe_path.mkdir(exist_ok=True)
241241
if meta_recipe_path.exists():
242242
shutil.rmtree(meta_recipe_path)
243-
shutil.copytree(recipe.path, meta_recipe_path)
243+
shutil.copytree(recipe.path, meta_recipe_path, ignore=shutil.ignore_patterns('.git'))

0 commit comments

Comments
 (0)