diff --git a/src/MakePhar/Manifest.php b/src/MakePhar/Manifest.php index d154474..2f478ae 100644 --- a/src/MakePhar/Manifest.php +++ b/src/MakePhar/Manifest.php @@ -198,6 +198,10 @@ class Manifest log_warn("Unsupported source type: %s", $source->type); } } + $items = array_filter($items, function ($item) { + if (fnmatch("*/.git/*", $item->src)) return false; + return true; + }); return $items; }