diff options
author | Stan Hu <stanhu@gmail.com> | 2019-01-24 11:37:26 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-02-05 21:33:10 -0800 |
commit | f929411c6da8ddc890cd2d30df632984d1554ad3 (patch) | |
tree | 0542466389e720f85ab1724ae76589d05f2b0a50 /lib/gitlab/git/repository.rb | |
parent | e5990db539ccbad926616b3e01736454dca38b75 (diff) | |
download | gitlab-ce-f929411c6da8ddc890cd2d30df632984d1554ad3.tar.gz |
Rename gl_project_name -> gl_project_pathsh-log-project-name-with-gitaly
Upgrade gitaly-proto to 1.10.0 to have this field.
Diffstat (limited to 'lib/gitlab/git/repository.rb')
-rw-r--r-- | lib/gitlab/git/repository.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index d368ee06c39..54bbd531398 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -67,7 +67,7 @@ module Gitlab # Relative path of repo attr_reader :relative_path - attr_reader :storage, :gl_repository, :relative_path, :gl_project_name + attr_reader :storage, :gl_repository, :relative_path, :gl_project_path # This remote name has to be stable for all types of repositories that # can join an object pool. If it's structure ever changes, a migration @@ -78,11 +78,11 @@ module Gitlab # This initializer method is only used on the client side (gitlab-ce). # Gitaly-ruby uses a different initializer. - def initialize(storage, relative_path, gl_repository, gl_project_name) + def initialize(storage, relative_path, gl_repository, gl_project_path) @storage = storage @relative_path = relative_path @gl_repository = gl_repository - @gl_project_name = gl_project_name + @gl_project_path = gl_project_path @name = @relative_path.split("/").last end @@ -873,7 +873,7 @@ module Gitlab end def gitaly_repository - Gitlab::GitalyClient::Util.repository(@storage, @relative_path, @gl_repository, @gl_project_name) + Gitlab::GitalyClient::Util.repository(@storage, @relative_path, @gl_repository, @gl_project_path) end def gitaly_ref_client |