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
No related branches found
No related tags found
No related merge requests found
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.
Finish editing this message first!
Please register or to comment