diff options
author | Hiroyuki Sato <h-sato@ruby-dev.jp> | 2016-10-28 20:38:14 +0900 |
---|---|---|
committer | Hiroyuki Sato <h-sato@ruby-dev.jp> | 2016-11-06 12:05:13 +0900 |
commit | 56264f35d40e3ebcebf2b88b9ff6f3a8f4f545e9 (patch) | |
tree | 5ba7c48578b118e2b00ebfa1489f9f39acb87518 /lib/extracts_path.rb | |
parent | c392b0cc24ba40e3fed920c6c693cb24665193af (diff) | |
download | gitlab-ce-56264f35d40e3ebcebf2b88b9ff6f3a8f4f545e9.tar.gz |
Network page appear with an error message when entering nonexistent git revision
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r-- | lib/extracts_path.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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, |