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
23dd313d
Commit
23dd313d
authored
Feb 19, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert Gitaly commit parent IDs to array as early as possible
The tracking issue if this causes problems is
https://gitlab.com/gitlab-org/gitaly/issues/1028
parent
af5cd10e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
commit.rb
lib/gitlab/git/commit.rb
+1
-10
No files found.
lib/gitlab/git/commit.rb
View file @
23dd313d
...
...
@@ -471,15 +471,6 @@ module Gitlab
private
def
parent_ids
=
(
shas
)
@parent_ids
=
case
shas
when
String
JSON
.
parse
(
shas
)
else
shas
end
end
def
init_from_hash
(
hash
)
raw_commit
=
hash
.
symbolize_keys
...
...
@@ -517,7 +508,7 @@ module Gitlab
@committed_date
=
Time
.
at
(
commit
.
committer
.
date
.
seconds
).
utc
@committer_name
=
commit
.
committer
.
name
.
dup
@committer_email
=
commit
.
committer
.
email
.
dup
@parent_ids
=
commit
.
parent_ids
@parent_ids
=
Array
(
commit
.
parent_ids
)
end
def
serialize_keys
...
...
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