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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
b3b034b8
Commit
b3b034b8
authored
Jun 29, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expires full_path cache after repository is transferred
parent
2446252c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
app/services/projects/transfer_service.rb
app/services/projects/transfer_service.rb
+1
-0
spec/services/projects/transfer_service_spec.rb
spec/services/projects/transfer_service_spec.rb
+6
-0
No files found.
app/services/projects/transfer_service.rb
View file @
b3b034b8
...
...
@@ -78,6 +78,7 @@ module Projects
Gitlab
::
PagesTransfer
.
new
.
move_project
(
project
.
path
,
@old_namespace
.
full_path
,
@new_namespace
.
full_path
)
project
.
old_path_with_namespace
=
@old_path
project
.
expires_full_path_cache
execute_system_hooks
end
...
...
spec/services/projects/transfer_service_spec.rb
View file @
b3b034b8
...
...
@@ -30,6 +30,12 @@ describe Projects::TransferService, services: true do
transfer_project
(
project
,
user
,
group
)
end
it
'expires full_path cache'
do
expect
(
project
).
to
receive
(
:expires_full_path_cache
)
transfer_project
(
project
,
user
,
group
)
end
it
'executes system hooks'
do
expect_any_instance_of
(
Projects
::
TransferService
).
to
receive
(
:execute_system_hooks
)
...
...
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