diff --git a/lib/gitlab/git/index.rb b/lib/gitlab/git/index.rb index 3d0000879f8743bc1b4603294d69c37c1d7ef827..69a7a513281c8a5f75fd20714e5997d3985ccf48 100644 --- a/lib/gitlab/git/index.rb +++ b/lib/gitlab/git/index.rb @@ -10,9 +10,7 @@ module Gitlab @raw_index = repository.rugged.index end - def read_tree(tree) - raw_index.read_tree(tree) - end + delegate :read_tree, to: :raw_index def write_tree raw_index.write_tree(repository.rugged)