Commit 23dd313d authored by Sean McGivern's avatar Sean McGivern

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
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment