misc/git-hooks: change the pre-receive hook so it waits for the archive

Fix #908.