Make sure git repo creation is complete by looking at post-receive hook

Fixes #559