diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-02 21:30:36 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-02 21:30:36 +0300 |
commit | 5f4445c3d384741c45242f077b3c0dbf76234ee8 (patch) | |
tree | 21962b2905103f2b3a585bda0ba6e60a669cb190 /lib/extracts_path.rb | |
parent | 7af16bbb0fdce36cf8b7e43e5cd64a712dfdaa1d (diff) | |
download | gitlab-ce-5f4445c3d384741c45242f077b3c0dbf76234ee8.tar.gz |
store commits for MR as array of hashes
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r-- | lib/extracts_path.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |