Commit 56cf0274 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Rename {create,inizialize}_raw_repository

parent 267cd3e3
...@@ -59,7 +59,7 @@ class Repository ...@@ -59,7 +59,7 @@ class Repository
def raw_repository def raw_repository
return nil unless path_with_namespace return nil unless path_with_namespace
@raw_repository ||= create_raw_repository @raw_repository ||= initialize_raw_repository
end end
# Return absolute path to repository # Return absolute path to repository
...@@ -146,7 +146,7 @@ class Repository ...@@ -146,7 +146,7 @@ class Repository
# may cause the branch to "disappear" erroneously or have the wrong SHA. # may cause the branch to "disappear" erroneously or have the wrong SHA.
# #
# See: https://github.com/libgit2/libgit2/issues/1534 and https://gitlab.com/gitlab-org/gitlab-ce/issues/15392 # See: https://github.com/libgit2/libgit2/issues/1534 and https://gitlab.com/gitlab-org/gitlab-ce/issues/15392
raw_repo = fresh_repo ? create_raw_repository : raw_repository raw_repo = fresh_repo ? initialize_raw_repository : raw_repository
raw_repo.find_branch(name) raw_repo.find_branch(name)
end end
...@@ -1162,7 +1162,7 @@ class Repository ...@@ -1162,7 +1162,7 @@ class Repository
@project.repository_storage_path @project.repository_storage_path
end end
def create_raw_repository def initialize_raw_repository
Gitlab::Git::Repository.new(project.repository_storage, path_with_namespace + '.git') Gitlab::Git::Repository.new(project.repository_storage, path_with_namespace + '.git')
end end
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