Trigger hooks correctly

Core changed the way repo configs store hooks. Should be
hooks[stage][action], i.e. hooks[:after][:commit]. Leaves should be
arrays.