Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
79fd7795
Commit
79fd7795
authored
Aug 25, 2016
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow setting branch refs for MR
parent
7bbb523b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/merge_request.rb
app/models/merge_request.rb
+2
-2
No files found.
app/models/merge_request.rb
View file @
79fd7795
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment