title: SourceTree custom action doesn't work but works through Git terminal window
body: <p>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.</p>
  
  <p><code>archive -o deploy.zip HEAD $(git diff --name-only --diff-filter=ACMR $SHA)</code></p>
  
  <p><a href="https://i.stack.imgur.com/soAUO.jpg" rel="nofollow noreferrer">Source Tree custom action screenshot</a></p>
  
  <p>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.</p>
  
  <p><code>git archive -o deploy.zip HEAD $(git diff --name-only --diff-filter=ACMR fbf360c607b01fc8c504c9fcf98114eb4bc1896c)
  error: unknown option name-only</code></p>
  
  <p><a href="https://i.stack.imgur.com/sHO9l.jpg" rel="nofollow noreferrer">Source Tree custom action error message screenshot</a></p>
  
  <p>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.</p>