Trying to execute git archive from an ant target and make it part of a deploy script—I am unable to get it to operate. Any assistance would be greatly appreciated.
If I were to enter the command at the command line, it would be: git archive -o update.zip HEAD $(git diff --name-only HEAD^) When I make this an ant target: <git command="archive"> <args> <arg value="-o ${work.deploy.location}/zip/deploy_changes.zip HEAD $(git diff -_name-only HEAD^)" /> </args> </git> I’ve even tried the following(I understand the idea that you can’t just run shell commands, but I can’t get the alias to work either): <exec executable="git"> <arg value="archive" /> <arg value="-o" /> <arg value="${work.deploy.location}/zip/deploy_changes.zip" /> <arg value="HEAD" /> <arg value="-c alias.x='!git diff --name-only HEAD^'" /> </exec> For both, I get something similar: [echo] git dir [echo] git archive [echo] git [exec] fatal: could not create archive file ' ../deploy/zip/deploy_changes.zip HEAD $(git diff --name-only HEAD^)': No such file or directory [exec] Result: 128 -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.