Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing broken custom pre-receive calls #192

Merged
merged 2 commits into from
Oct 31, 2014
Merged

fixing broken custom pre-receive calls #192

merged 2 commits into from
Oct 31, 2014

Conversation

jkbzh
Copy link
Contributor

@jkbzh jkbzh commented Oct 30, 2014

The gitlab pre-receive hook expects the call to exec to return 1
when a user has access. Doing an exit 0 effectively ended the
thread. No code would be executed after the call to exec.

This changes fixes the problem for the pre-receive hooks but you want
to check that GitlabAccess.exec is not used elsewhere. A quick
grep of the code seems to indicate this is not the case

when a user has access. Doing an exit 0 effectively ended the
thread. No code would be executed after the call to exec.

This changes fixes the problem for the pre-receive hooks but you want
to check that GitlabAccess.exec is not used elsewhere. A quick
grep of the code seems to indicate this is not the case
@dosire
Copy link
Member

dosire commented Oct 30, 2014

👍 @randx

@dzaporozhets dzaporozhets self-assigned this Oct 31, 2014
@dzaporozhets
Copy link
Member

makes sense. We expecting true/false in hook

dzaporozhets added a commit that referenced this pull request Oct 31, 2014
fixing broken custom pre-receive calls
@dzaporozhets dzaporozhets merged commit 00b3d2c into gitlabhq:master Oct 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants