Skip to content
Snippets Groups Projects
Verified Commit 39c65360 authored by Francisco Javier López's avatar Francisco Javier López :red_circle:
Browse files

Fixing bug and spec

parent 7fbb1bbe
No related branches found
No related tags found
No related merge requests found
Pipeline #104282821 failed
......@@ -102,7 +102,7 @@ def repository
def snippet
strong_memoize(:snippet) do
attrs = {ids: repository_id }
attrs = { ids: repository_id }
attrs[:project] = project
attrs[:only_personal] = true unless project
......
......@@ -95,10 +95,10 @@ def raw_repository
def path_to_repo
@path_to_repo ||=
begin
storage = Gitlab.config.repositories.storages[storage]
repo_storage = Gitlab.config.repositories.storages[storage]
File.expand_path(
File.join(storage.legacy_disk_path, disk_path + '.git')
File.join(repo_storage.legacy_disk_path, disk_path + '.git')
)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment