Bug: Custom hooks when GitoriousConfig is loaded
authorChristian Johansen <christian@gitorious.com>
Tue, 5 Mar 2013 21:32:33 +0000 (22:32 +0100)
committerChristian Johansen <christian@gitorious.com>
Tue, 5 Mar 2013 21:32:33 +0000 (22:32 +0100)
commitc341ed629122714601cf5daa652b582a77f84ed3
tree55e65ad112ae8cf7424deadd98531e39681a7cbe
parent175029154dcbd3e4dba16b9fe57a956144085944
Bug: Custom hooks when GitoriousConfig is loaded

If GitoriousConfig was already loaded when the hooks fired, then
CustomHook would attempt to access GitoriousConfig[env] which is
senseless, because GitoriousConfig only contains configuration for a
given environment.
lib/gitorious/custom_hook.rb