summaryrefslogtreecommitdiff
path: root/app/models/pool_repository.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-12-22 23:34:35 -0800
committerStan Hu <stanhu@gmail.com>2019-02-05 21:33:09 -0800
commit82b6e5378ab7c63b166229388f0a9b1bd79319c7 (patch)
treefb16d3520109ddf6135ede97dff5232857b3c515 /app/models/pool_repository.rb
parentd8e24e9d3896443e4b46c99a9b61a59d2a1acb2e (diff)
downloadgitlab-ce-82b6e5378ab7c63b166229388f0a9b1bd79319c7.tar.gz
Send project name with Gitaly repository requests
When hashed storage is in use, it's helpful to have the project name associated with the request. Closes https://gitlab.com/gitlab-org/gitaly/issues/1394
Diffstat (limited to 'app/models/pool_repository.rb')
-rw-r--r--app/models/pool_repository.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/pool_repository.rb b/app/models/pool_repository.rb
index 34220c1b450..be39bbe419b 100644
--- a/app/models/pool_repository.rb
+++ b/app/models/pool_repository.rb
@@ -96,7 +96,8 @@ class PoolRepository < ActiveRecord::Base
@object_pool ||= Gitlab::Git::ObjectPool.new(
shard.name,
disk_path + '.git',
- source_project.repository.raw)
+ source_project.repository.raw,
+ source_project.path_with_namespace)
end
def inspect