From 56264f35d40e3ebcebf2b88b9ff6f3a8f4f545e9 Mon Sep 17 00:00:00 2001 From: Hiroyuki Sato Date: Fri, 28 Oct 2016 20:38:14 +0900 Subject: Network page appear with an error message when entering nonexistent git revision --- lib/extracts_path.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/extracts_path.rb') diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index 9b74364849e..a8cc189a8c2 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -125,9 +125,9 @@ module ExtractsPath request.format = :atom if @commit end - end - raise InvalidPathError unless @commit + raise InvalidPathError unless @commit + end @hex_path = Digest::SHA1.hexdigest(@path) @logs_path = logs_file_namespace_project_ref_path(@project.namespace, -- cgit v1.2.3