Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2018-01-17 08:43:30 +0300
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2018-01-30 14:22:31 +0300
commit10fb904d636ab49b87e2deb756f64fc26d2eacec (patch)
tree290fa9295c6dd613fef4e421587d3a792e122593 /app
parent44edd1111f9ba6dd0dacffad23b54c0c85a723c4 (diff)
Migrate Git::Repository#write_ref to Gitaly
Diffstat (limited to 'app')
-rw-r--r--app/models/repository.rb2
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)