wp-cli / dist-archive-command

Create a distribution .zip or .tar.gz based on a plugin or theme's .distignore file
https://developer.wordpress.org/cli/commands/dist-archive/
MIT License
48 stars 24 forks source link

Ignores .git folder Fix #67 #68

Closed BrianHenryIE closed 2 years ago

BrianHenryIE commented 2 years ago

Escaping the command line invocation of tar breaks wildcards and exclusions, '^', '*', but NOT escaping those characters breaks zip. This PR conditionally escapes/does not escape based on the chosen output file format.

kraftner commented 2 years ago

@BrianHenryIE Thanks for picking up #67 and implementing a fix!