summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-04-05 13:33:50 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-04-05 13:33:50 +0200
commit56cf0274a00ee4f2e21d6b1d0a41ea1642a1268f (patch)
tree3510ee6c5b6aa0d3d56a0046ab243111227e98d0
parent267cd3e3594dcb1555b5018723f3cc620873499d (diff)
downloadgitlab-ce-gitaly-refs.tar.gz
Rename {create,inizialize}_raw_repositorygitaly-refs
-rw-r--r--app/models/repository.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index f3c4cb851fb..dc1c1fab880 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -59,7 +59,7 @@ class Repository
def raw_repository
return nil unless path_with_namespace
- @raw_repository ||= create_raw_repository
+ @raw_repository ||= initialize_raw_repository
end
# Return absolute path to repository
@@ -146,7 +146,7 @@ class Repository
# 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
- raw_repo = fresh_repo ? create_raw_repository : raw_repository
+ raw_repo = fresh_repo ? initialize_raw_repository : raw_repository
raw_repo.find_branch(name)
end
@@ -1162,7 +1162,7 @@ class Repository
@project.repository_storage_path
end
- def create_raw_repository
+ def initialize_raw_repository
Gitlab::Git::Repository.new(project.repository_storage, path_with_namespace + '.git')
end
end