BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9f75b7a4
Commit
9f75b7a4
authored
Dec 05, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gitaly-conflict-file' into 'master'
Small Gitlab::Git fixes for Gitaly See merge request gitlab-org/gitlab-ce!15675
parents
c925820a
359b65be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
file.rb
lib/gitlab/git/conflict/file.rb
+1
-1
resolver.rb
lib/gitlab/git/conflict/resolver.rb
+1
-1
No files found.
lib/gitlab/git/conflict/file.rb
View file @
9f75b7a4
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Git
module
Conflict
class
File
attr_reader
:content
,
:their_path
,
:our_path
,
:our_mode
,
:repository
attr_reader
:content
,
:their_path
,
:our_path
,
:our_mode
,
:repository
,
:commit_oid
def
initialize
(
repository
,
commit_oid
,
conflict
,
content
)
@repository
=
repository
...
...
lib/gitlab/git/conflict/resolver.rb
View file @
9f75b7a4
...
...
@@ -75,7 +75,7 @@ module Gitlab
resolved_lines
=
file
.
resolve_lines
(
params
[
:sections
])
new_file
=
resolved_lines
.
map
{
|
line
|
line
[
:full_line
]
}.
join
(
"
\n
"
)
new_file
<<
"
\n
"
if
file
.
our_blob
.
data
.
end
s
_with?
(
"
\n
"
)
new_file
<<
"
\n
"
if
file
.
our_blob
.
data
.
end_with?
(
"
\n
"
)
elsif
params
[
:content
]
new_file
=
file
.
resolve_content
(
params
[
:content
])
end
...
...
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