Fix tests and remove app/models/repository.rb
This commit is contained in:
parent
154e54b46e
commit
9dc644635f
6 changed files with 5 additions and 325 deletions
|
@ -100,8 +100,8 @@ module ExtractsPath
|
|||
|
||||
# It is used "@project.repository.commits(@ref, @path, 1, 0)",
|
||||
# because "@project.repository.commit(@ref)" returns wrong commit when @ref is tag name.
|
||||
commits = @project.repository.commits(@ref, @path, 1, 0)
|
||||
@commit = CommitDecorator.decorate(commits.first)
|
||||
@commit = @project.repository.commits(@ref, @path, 1, 0).first
|
||||
@commit = CommitDecorator.decorate(@commit)
|
||||
|
||||
@tree = Tree.new(@commit.tree, @ref, @path)
|
||||
@tree = TreeDecorator.new(@tree)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue