From 5f4445c3d384741c45242f077b3c0dbf76234ee8 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 2 Apr 2013 21:30:36 +0300 Subject: store commits for MR as array of hashes --- lib/extracts_path.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/extracts_path.rb') diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index 2e3ab1b2701..c3e2441ff21 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -102,7 +102,7 @@ module ExtractsPath # because "@project.repository.commit(@ref)" returns wrong commit when @ref is tag name. @commit = @project.repository.commits(@ref, @path, 1, 0).first - @tree = Tree.new(@commit.tree, @ref, @path) + @tree = Tree.new(@project.repository, @commit.id, @ref, @path) raise InvalidPathError if @tree.invalid? rescue RuntimeError, NoMethodError, InvalidPathError -- cgit v1.2.3