gitlabhq/gitlabhq — pull request #1154 by meskyanichi (2012-07-27 13:32:18+00:00)
Title: As per request: Post-receive hook should be owned by gitlab user, not git.

As per request: Post-receive hook should be owned by gitlab user, not git.

Ref: https://github.com/gitlabhq/gitlabhq/pull/1129#issuecomment-7298317

This might be why the restore functionality wasn't working properly. I'll give it another shot using this.