Commit ed91b678 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix repository mirroring calling path_with_namespace

parent 27bc2178
...@@ -4,11 +4,11 @@ module RepositoryMirroring ...@@ -4,11 +4,11 @@ module RepositoryMirroring
end end
def push_remote_branches(remote, branches) def push_remote_branches(remote, branches)
gitlab_shell.push_remote_branches(storage_path, path_with_namespace, remote, branches) gitlab_shell.push_remote_branches(storage_path, disk_path, remote, branches)
end end
def delete_remote_branches(remote, branches) def delete_remote_branches(remote, branches)
gitlab_shell.delete_remote_branches(storage_path, path_with_namespace, remote, branches) gitlab_shell.delete_remote_branches(storage_path, disk_path, remote, branches)
end end
def set_remote_as_mirror(name) def set_remote_as_mirror(name)
...@@ -28,7 +28,7 @@ module RepositoryMirroring ...@@ -28,7 +28,7 @@ module RepositoryMirroring
end end
def remote_tags(remote) def remote_tags(remote)
gitlab_shell.list_remote_tags(storage_path, path_with_namespace, remote).map do |name, target| gitlab_shell.list_remote_tags(storage_path, disk_path, remote).map do |name, target|
target_commit = Gitlab::Git::Commit.find(raw_repository, target) target_commit = Gitlab::Git::Commit.find(raw_repository, target)
Gitlab::Git::Tag.new(raw_repository, name, target, target_commit) Gitlab::Git::Tag.new(raw_repository, name, target, target_commit)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment