Gitlab::Git::Tree & Blob added

This commit is contained in:
Dmitriy Zaporozhets
2013-04-02 22:37:20 +03:00
parent 0c5795a497
commit 03f41e2820
9 changed files with 65 additions and 26 deletions

View File

@ -104,7 +104,7 @@ module ExtractsPath
@tree = Tree.new(@project.repository, @commit.id, @ref, @path)
raise InvalidPathError if @tree.invalid?
raise InvalidPathError unless @tree.exists?
rescue RuntimeError, NoMethodError, InvalidPathError
not_found!
end