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
4ba65a4b
Commit
4ba65a4b
authored
Aug 23, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests for the renaming
parent
6ffe11cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/services/geo/move_repository_service.rb
app/services/geo/move_repository_service.rb
+1
-1
app/workers/geo_repository_create_worker.rb
app/workers/geo_repository_create_worker.rb
+1
-1
No files found.
app/services/geo/move_repository_service.rb
View file @
4ba65a4b
...
...
@@ -16,7 +16,7 @@ module Geo
project
.
expire_caches_before_rename
(
old_path_with_namespace
)
# Make sure target directory exists (used when transfering repositories)
project
.
ensure_storage_path_exist
project
.
ensure_storage_path_exist
s
if
gitlab_shell
.
mv_repository
(
project
.
repository_storage_path
,
old_path_with_namespace
,
new_path_with_namespace
)
...
...
app/workers/geo_repository_create_worker.rb
View file @
4ba65a4b
...
...
@@ -5,7 +5,7 @@ class GeoRepositoryCreateWorker
def
perform
(
id
)
project
=
Project
.
find
(
id
)
project
.
ensure_storage_path_exist
project
.
ensure_storage_path_exist
s
project
.
create_repository
unless
project
.
repository_exists?
||
project
.
import?
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