Skip to content
Snippets Groups Projects
Commit 79fd7795 authored by Sean McGivern's avatar Sean McGivern
Browse files

Allow setting branch refs for MR

parent 7bbb523b
Branches
Tags
1 merge request!6025Allow setting branch refs for MR
Pipeline #
Loading
Loading
@@ -238,12 +238,12 @@ class MergeRequest < ActiveRecord::Base
 
def source_branch_head
source_branch_ref = @source_branch_sha || source_branch
source_project.repository.commit(source_branch) if source_branch_ref
source_project.repository.commit(source_branch_ref) if source_branch_ref
end
 
def target_branch_head
target_branch_ref = @target_branch_sha || target_branch
target_project.repository.commit(target_branch) if target_branch_ref
target_project.repository.commit(target_branch_ref) if target_branch_ref
end
 
def target_branch_sha
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment