diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-01-17 08:43:30 +0300 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-01-30 14:22:31 +0300 |
commit | 10fb904d636ab49b87e2deb756f64fc26d2eacec (patch) | |
tree | 290fa9295c6dd613fef4e421587d3a792e122593 /app | |
parent | 44edd1111f9ba6dd0dacffad23b54c0c85a723c4 (diff) |
Migrate Git::Repository#write_ref to Gitaly
Diffstat (limited to 'app')
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 5b06dc5a39b..2146e5a74f2 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -255,6 +255,8 @@ class Repository # This will still fail if the file is corrupted (e.g. 0 bytes) raw_repository.write_ref(keep_around_ref_name(sha), sha, shell: false) + rescue Gitlab::Git::CommandError => ex + Rails.logger.error "Unable to create keep-around reference for repository #{path}: #{ex}" end def kept_around?(sha) |