summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-01-29 17:46:23 +0100
committerJacob Vosmaer <jacob@gitlab.com>2018-01-30 17:51:56 +0100
commita6dbb85e978cb05255fd78de44d6f7b364f6dabc (patch)
tree6d0e139e781af52cc6997662eaf6038f62542eb0 /app
parent9d53c15c86cf8deacff2b4c0c2cbd5219b9647e5 (diff)
downloadgitlab-ce-a6dbb85e978cb05255fd78de44d6f7b364f6dabc.tar.gz
Remove Rugged exception in cache rescuerugged-reference-cache-rescue
Diffstat (limited to 'app')
-rw-r--r--app/models/repository.rb2
1 files changed, 1 insertions, 1 deletions
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