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
59906167
Commit
59906167
authored
Jul 05, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix arguments alignment for Geo:RepositoryRenamedEventStore
parent
155af580
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
app/models/ee/namespace.rb
app/models/ee/namespace.rb
+5
-2
app/models/ee/project.rb
app/models/ee/project.rb
+5
-2
app/services/ee/projects/transfer_service.rb
app/services/ee/projects/transfer_service.rb
+5
-2
No files found.
app/models/ee/namespace.rb
View file @
59906167
...
@@ -38,8 +38,11 @@ module EE
...
@@ -38,8 +38,11 @@ module EE
all_projects
.
each
do
|
project
|
all_projects
.
each
do
|
project
|
old_path_with_namespace
=
File
.
join
(
full_path_was
,
project
.
path
)
old_path_with_namespace
=
File
.
join
(
full_path_was
,
project
.
path
)
::
Geo
::
RepositoryRenamedEventStore
.
new
(
project
,
::
Geo
::
RepositoryRenamedEventStore
.
new
(
old_path:
project
.
path
,
old_path_with_namespace:
old_path_with_namespace
).
create
project
,
old_path:
project
.
path
,
old_path_with_namespace:
old_path_with_namespace
).
create
end
end
end
end
...
...
app/models/ee/project.rb
View file @
59906167
...
@@ -433,8 +433,11 @@ module EE
...
@@ -433,8 +433,11 @@ module EE
path_was
=
previous_changes
[
'path'
].
first
path_was
=
previous_changes
[
'path'
].
first
old_path_with_namespace
=
File
.
join
(
namespace
.
full_path
,
path_was
)
old_path_with_namespace
=
File
.
join
(
namespace
.
full_path
,
path_was
)
::
Geo
::
RepositoryRenamedEventStore
.
new
(
self
,
::
Geo
::
RepositoryRenamedEventStore
.
new
(
old_path:
path_was
,
old_path_with_namespace:
old_path_with_namespace
).
create
self
,
old_path:
path_was
,
old_path_with_namespace:
old_path_with_namespace
).
create
end
end
private
private
...
...
app/services/ee/projects/transfer_service.rb
View file @
59906167
...
@@ -8,8 +8,11 @@ module EE
...
@@ -8,8 +8,11 @@ module EE
super
super
::
Geo
::
RepositoryRenamedEventStore
.
new
(
project
,
::
Geo
::
RepositoryRenamedEventStore
.
new
(
old_path:
project
.
path
,
old_path_with_namespace:
@old_path
).
create
project
,
old_path:
project
.
path
,
old_path_with_namespace:
@old_path
).
create
end
end
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