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
8d3bfd24
Commit
8d3bfd24
authored
Mar 14, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed add_repository to create_repository
parent
bbf3ad03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/services/geo/base_sync_service.rb
ee/app/services/geo/base_sync_service.rb
+1
-1
ee/app/services/projects/update_repository_storage_service.rb
...pp/services/projects/update_repository_storage_service.rb
+1
-1
No files found.
ee/app/services/geo/base_sync_service.rb
View file @
8d3bfd24
...
...
@@ -173,7 +173,7 @@ module Geo
end
def
build_temporary_repository
unless
gitlab_shell
.
add
_repository
(
project
.
repository_storage
,
disk_path_temp
)
unless
gitlab_shell
.
create
_repository
(
project
.
repository_storage
,
disk_path_temp
)
raise
Gitlab
::
Shell
::
Error
,
'Can not create a temporary repository'
end
...
...
ee/app/services/projects/update_repository_storage_service.rb
View file @
8d3bfd24
...
...
@@ -30,7 +30,7 @@ module Projects
repository
=
(
wiki
?
project
.
wiki
.
repository
:
project
.
repository
).
raw
# Initialize a git repository on the target path
gitlab_shell
.
add
_repository
(
new_storage_key
,
repository
.
relative_path
)
gitlab_shell
.
create
_repository
(
new_storage_key
,
repository
.
relative_path
)
new_repository
=
Gitlab
::
Git
::
Repository
.
new
(
new_storage_key
,
repository
.
relative_path
,
repository
.
gl_repository
)
...
...
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