diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-04-30 10:17:09 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-04-30 10:17:09 +0000 |
commit | 660a902891cf653485814bfec25c3b426f7c5c69 (patch) | |
tree | 567394ce4cdc246dcbc89612649848eaffe411f4 /lib/gitlab/git | |
parent | 649f791e054f04512fa42ad0f195a7c75543df98 (diff) | |
parent | 7d23a2bfdf9a67ece2397d19b1d62076559d01cb (diff) | |
download | gitlab-ce-660a902891cf653485814bfec25c3b426f7c5c69.tar.gz |
Merge branch 'zj-remove-repo-path-remote-repository' into 'master'
Remove legacy storage path call
See merge request gitlab-org/gitlab-ce!18598
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r-- | lib/gitlab/git/remote_repository.rb | 7 | ||||
-rw-r--r-- | lib/gitlab/git/repository.rb | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/gitlab/git/remote_repository.rb b/lib/gitlab/git/remote_repository.rb index 6bd6e58feeb..f40e59a8dd0 100644 --- a/lib/gitlab/git/remote_repository.rb +++ b/lib/gitlab/git/remote_repository.rb @@ -12,7 +12,7 @@ module Gitlab # class. # class RemoteRepository - attr_reader :path, :relative_path, :gitaly_repository + attr_reader :relative_path, :gitaly_repository def initialize(repository) @relative_path = repository.relative_path @@ -21,7 +21,6 @@ module Gitlab # These instance variables will not be available in gitaly-ruby, where # we have no disk access to this repository. @repository = repository - @path = repository.path end def empty? @@ -69,6 +68,10 @@ module Gitlab env end + def path + @repository.path + end + private # Must return an object that responds to 'address' and 'storage'. diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 0d07fb85213..0ad2d385051 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -1179,6 +1179,8 @@ module Gitlab if is_enabled gitaly_fetch_ref(source_repository, source_ref: source_ref, target_ref: target_ref) else + # When removing this code, also remove source_repository#path + # to remove deprecated method calls local_fetch_ref(source_repository.path, source_ref: source_ref, target_ref: target_ref) end end |