diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-01-29 17:46:23 +0100 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-01-30 17:51:56 +0100 |
commit | a6dbb85e978cb05255fd78de44d6f7b364f6dabc (patch) | |
tree | 6d0e139e781af52cc6997662eaf6038f62542eb0 /app | |
parent | 9d53c15c86cf8deacff2b4c0c2cbd5219b9647e5 (diff) | |
download | gitlab-ce-a6dbb85e978cb05255fd78de44d6f7b364f6dabc.tar.gz |
Remove Rugged exception in cache rescuerugged-reference-cache-rescue
Diffstat (limited to 'app')
-rw-r--r-- | app/models/repository.rb | 2 |
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 |