diff options
author | Rubén Dávila <ruben@gitlab.com> | 2015-11-25 19:20:40 -0500 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2015-12-03 09:39:15 -0500 |
commit | 5145706c82613d64462fe736850d09799224cd77 (patch) | |
tree | 81744d6a01be18d3c89c6cb726f8496777b99e4e /app/services/files | |
parent | b5103a83a8574936721250997e75ab9a6855d00a (diff) | |
download | gitlab-ce-5145706c82613d64462fe736850d09799224cd77.tar.gz |
Run custom Git hooks when creating or deleting branches through the UI. #1156
Diffstat (limited to 'app/services/files')
-rw-r--r-- | app/services/files/base_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/files/base_service.rb b/app/services/files/base_service.rb index 008833eed80..f50aaf2eb52 100644 --- a/app/services/files/base_service.rb +++ b/app/services/files/base_service.rb @@ -26,7 +26,7 @@ module Files else error("Something went wrong. Your changes were not committed") end - rescue Repository::CommitError, Repository::PreReceiveError, ValidationError => ex + rescue Repository::CommitError, GitHooksService::PreReceiveError, ValidationError => ex error(ex.message) end |