I want my remote git-repo to create a zip file from one folder in the master branch every time someone pushes.
I renamed the post-commit.sample file and added the following:
#!/bin/bash echo "creating zip" /usr/local/bin/git archive --format=zip --output=~/the-folder.zip master:the-folder echo "creating zip done"
When I commit from my client I don't see the echoes and I don't get any zip-file. The post-commit file has execution privileges.
What am I missing?