Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
56cf0274
Commit
56cf0274
authored
Apr 05, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename {create,inizialize}_raw_repository
parent
267cd3e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/models/repository.rb
app/models/repository.rb
+3
-3
No files found.
app/models/repository.rb
View file @
56cf0274
...
@@ -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
||=
creat
e_raw_repository
@raw_repository
||=
initializ
e_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
?
creat
e_raw_repository
:
raw_repository
raw_repo
=
fresh_repo
?
initializ
e_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
creat
e_raw_repository
def
initializ
e_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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment