I'm looking to create a custom action that will generate an archive file containing only the modified files within a specific commit. Here is the working git call:
git archive -o update.zip HEAD $(git diff-tree --no-commit-id --name-only -r COMMITID)
This works fine on the mac side and also when called directly from the command line but fails when called via a batch file. I suspect there is some kind of syntax issue specifically related to writing this call within a batch file but I'm unable to figure it out. The error generated is:
unknown option `no-commit-id`
I noticed that if I remove the no-commit-id and name-only options the error becomes:
fatal: path not found: $(git
Any help would be greatly appreciated!