diff options
author | Sean McGivern <sean@gitlab.com> | 2019-03-21 10:33:29 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-03-21 10:33:29 +0000 |
commit | a97ec84f0503b164e57e7f43b217ddfea864209f (patch) | |
tree | 739cf7435829eb1387c6d8da47df69f539b61b3f /lib | |
parent | a8bb2c1221e67b7a3d82c24aede072248d0f78e7 (diff) | |
download | gitlab-ce-a97ec84f0503b164e57e7f43b217ddfea864209f.tar.gz |
Revert "Merge branch '58805-allow-incomplete-commit-data-to-be-fetched-from-collection' into 'master'"
This reverts merge request !26144
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/commit.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/git/commit.rb b/lib/gitlab/git/commit.rb index 8fac3621df9..88ff9fbceb4 100644 --- a/lib/gitlab/git/commit.rb +++ b/lib/gitlab/git/commit.rb @@ -318,10 +318,6 @@ module Gitlab parent_ids.size > 1 end - def gitaly_commit? - raw_commit.is_a?(Gitaly::GitCommit) - end - def tree_entry(path) return unless path.present? @@ -344,7 +340,7 @@ module Gitlab end def to_gitaly_commit - return raw_commit if gitaly_commit? + return raw_commit if raw_commit.is_a?(Gitaly::GitCommit) message_split = raw_commit.message.split("\n", 2) Gitaly::GitCommit.new( |