summaryrefslogtreecommitdiff
path: root/app/services/files
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2015-11-25 19:20:40 -0500
committerRubén Dávila <ruben@gitlab.com>2015-12-03 09:39:15 -0500
commit5145706c82613d64462fe736850d09799224cd77 (patch)
tree81744d6a01be18d3c89c6cb726f8496777b99e4e /app/services/files
parentb5103a83a8574936721250997e75ab9a6855d00a (diff)
downloadgitlab-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.rb2
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