Add missing exception variable
This commit is contained in:
parent
4a4f809353
commit
45c5311a8b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue