Permalink
Browse files

Do not exit(0) if everything is fine from the pre-receive hook

We may be fed even more refs so just let it run and exit cleanly when done.
  • Loading branch information...
1 parent e7136ff commit 4b7c97d704206813879226c197654914f2766c88 @js js committed Jul 27, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 data/hooks/pre-receive
View
@@ -64,11 +64,12 @@ while data = gets
end
end
- # If we get here, everything should be good to go..
+ # If we get here, everything should be good to go and we
+ # wait for the next line to be fed to us, or just let this
+ # script finish..
logger.info("Allowed #{ENV['GITORIOUS_USER'].inspect} to " +
"#{pre_receive_guard.git_spec.inspect} via " +
"#{ENV['GITORIOUS_WRITABLE_BY_URL'].inspect}")
- exit(0)
else
pre_receive_guard.gitorious_says "You do not have write access to this repository"
logger.info("Denied #{ENV['GITORIOUS_USER'].inspect} to " +

0 comments on commit 4b7c97d

Please sign in to comment.