summaryrefslogtreecommitdiff
path: root/lib/extracts_path.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-02 22:37:20 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-02 22:37:20 +0300
commit03f41e2820d76d272aa7357cf726b5d131bb80e0 (patch)
tree8f9b317572899049d43de0d72194b9b50da1648e /lib/extracts_path.rb
parent0c5795a49726402d2f2751d8b05d5bbb9dd23511 (diff)
downloadgitlab-ce-03f41e2820d76d272aa7357cf726b5d131bb80e0.tar.gz
Gitlab::Git::Tree & Blob added
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r--lib/extracts_path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index c3e2441ff21..009c5fcada9 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -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