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
47 stars 23 forks source link

Ignores .git folder Fix #67 #68

Closed BrianHenryIE closed 1 year ago

BrianHenryIE commented 1 year 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 1 year ago

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