diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-06-20 09:33:50 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-06-20 09:33:50 +0000 |
commit | e9e9da822ac49cc857158c4ecc777b077a963280 (patch) | |
tree | 701e0c6ba6ab53f42ca7b522cccd2e0fb69f8508 /app/models/repository.rb | |
parent | 329b00672d014994e7189b24a7c2e65771363152 (diff) | |
download | gitlab-ce-e9e9da822ac49cc857158c4ecc777b077a963280.tar.gz |
More gitaly disk access blocks
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index e4202505634..c2f62badbcb 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -154,7 +154,10 @@ class Repository # Returns a list of commits that are not present in any reference def new_commits(newrev) - refs = ::Gitlab::Git::RevList.new(raw, newrev: newrev).new_refs + # Gitaly migration: https://gitlab.com/gitlab-org/gitaly/issues/1233 + refs = Gitlab::GitalyClient::StorageSettings.allow_disk_access do + ::Gitlab::Git::RevList.new(raw, newrev: newrev).new_refs + end refs.map { |sha| commit(sha.strip) } end |