Web Editor should show custom hook output when comit was rejected
Created by: iakovgan
When a custom hook failes the commit for some reason, user of Web Editor, get's a message:
"Your changes could not be committed. Maybe the file was changed by another process or there was nothing to commit?" https://github.com/gitlabhq/gitlabhq/blob/master/app/services/files/update_service.rb#L32
It would be nice to provide a error message that explains why commit was rejected. This can be an output from custom hook avaliable here: https://github.com/gitlabhq/gitlabhq/blob/master/lib/gitlab/satellite/files/edit_file_action.rb