diff options
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 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 |