I'm trying to setup Source Tree custom Git action to extract and zip files for deploy from selected commit till the HEAD, excluding deleted files with --diff-filter.
archive -o deploy.zip HEAD $(git diff --name-only --diff-filter=ACMR $SHA)
Source Tree custom action screenshot
The problem is that this Git command works perfectly through Git terminal window without error but when I try to use it in Source Tree I get this error.
git archive -o deploy.zip HEAD $(git diff --name-only --diff-filter=ACMR fbf360c607b01fc8c504c9fcf98114eb4bc1896c)
error: unknown option name-only
Source Tree custom action error message screenshot
I've tried to figure out what is the problem with this issue, but without success. I would like to hear if anybody had this or similar problem in Source Tree because it looks like a bug to me.