diff options
author | Micaël Bergeron <mbergeron@gitlab.com> | 2018-02-12 17:02:15 +0300 |
---|---|---|
committer | Micaël Bergeron <mbergeron@gitlab.com> | 2018-02-16 21:51:19 +0300 |
commit | f9492554617d807b35358cb799d26e3422dd4c71 (patch) | |
tree | 50b1a13167df1b61e2424fd5852b8ef45d4e139c /lib | |
parent | 1883c5964085ab18a12633ae5db663298f176ccb (diff) |
fix specs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/commit.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/git/commit.rb b/lib/gitlab/git/commit.rb index d95561fe1b2..28a8a79e36e 100644 --- a/lib/gitlab/git/commit.rb +++ b/lib/gitlab/git/commit.rb @@ -471,6 +471,14 @@ module Gitlab private + def parent_ids=(shas) + @parent_ids = case shas + when String then JSON.parse(shas) + else + shas + end + end + def init_from_hash(hash) raw_commit = hash.symbolize_keys |