Commit 45c5311a authored by Jacob Vosmaer's avatar Jacob Vosmaer

Add missing exception variable

parent 4a4f8093
...@@ -1495,7 +1495,7 @@ module Gitlab ...@@ -1495,7 +1495,7 @@ module Gitlab
OperationService.new(user, self).add_branch(branch_name, target_object.oid) OperationService.new(user, self).add_branch(branch_name, target_object.oid)
find_branch(branch_name) find_branch(branch_name)
rescue Rugged::ReferenceError rescue Rugged::ReferenceError => ex
raise InvalidRef, ex raise InvalidRef, ex
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment