summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-10-04 12:29:06 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-10-04 12:29:06 +0200
commit45c5311a8bd86b27e6772d9f609ea051498e3ff7 (patch)
treef23325b05dbee7b1e6656fd8e27d58495ea2d371
parent4a4f809353a2e7007f8c6d33bfb1e4d09ed5a560 (diff)
downloadgitlab-ce-45c5311a8bd86b27e6772d9f609ea051498e3ff7.tar.gz
Add missing exception variable
-rw-r--r--lib/gitlab/git/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index a76befe4b52..fb3a8516441 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -1495,7 +1495,7 @@ module Gitlab
OperationService.new(user, self).add_branch(branch_name, target_object.oid)
find_branch(branch_name)
- rescue Rugged::ReferenceError
+ rescue Rugged::ReferenceError => ex
raise InvalidRef, ex
end
end