From a6dbb85e978cb05255fd78de44d6f7b364f6dabc Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Mon, 29 Jan 2018 17:46:23 +0100 Subject: Remove Rugged exception in cache rescue --- app/models/repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') diff --git a/app/models/repository.rb b/app/models/repository.rb index 872d4468ac8..21a5c6c17cd 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -949,7 +949,7 @@ class Repository end instance_variable_set(ivar, value) - rescue Rugged::ReferenceError, Gitlab::Git::Repository::NoRepository + rescue Gitlab::Git::Repository::NoRepository # Even if the above `#exists?` check passes these errors might still # occur (for example because of a non-existing HEAD). We want to # gracefully handle this and not cache anything -- cgit v1.2.1