mislav/git-deploy — Issue #11: post-receive not run on first deploy
Author: borgand
Created: 2011-11-04 12:38:15+00:00
State: open

This might be a Git issue, but the `post-receive` hook is not run after first deploy.

How to reproduce:

host1$ git deploy setup -r staging
host1$ git push staging master

At this point the `log/deploy.log` is empty. But when follow this with:

staging$ git reset --hard HEAD^
host1$ git fetch staging
host1$ git push staging master

Then the `post-receive` hook is run and everything is ok.

Can this be because git `post-receive` hook expects two revisions as input, but initially there is only one?