coduno / toolbox

Compute Engine Environment for Coduno
Apache License 2.0
0 stars 0 forks source link

git checkout on commit-hash fails #3

Closed WanzenBug closed 9 years ago

WanzenBug commented 9 years ago

post-receive hook fails to checkout the supplied hash. Apparently "." is not a git repository

lorenzleutgeb commented 9 years ago

For future reference: This was fixed in b3c056ce319a5ddfc46b3403414362e4bcf653e8.

The issue was that $GIT_DIR is set by Git when executing a hook, that always repointed the calls to Git inside the hook to the original repo, which is quite confusing.