Skip to content
Snippets Groups Projects
Commit 522eb179 authored by Douwe Maan's avatar Douwe Maan
Browse files

Merge branch 'klowner/gitlab-ce-fix-compare-by-tag-crash' into 'master'

Fix 500 error when comparing by tags

_Originally opened at !2787 by @klowner._

- - -

Fixes #13171.
Fixes #13370.

See merge request !2849
parents cbb45195 e9e01bcd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -611,6 +611,8 @@ class Repository
end
 
def merge_base(first_commit_id, second_commit_id)
first_commit_id = commit(first_commit_id).try(:id) || first_commit_id
second_commit_id = commit(second_commit_id).try(:id) || second_commit_id
rugged.merge_base(first_commit_id, second_commit_id)
rescue Rugged::ReferenceError
nil
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment