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
385488f8
Commit
385488f8
authored
Dec 04, 2019
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update design repository path suffix
parent
58ae3169
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
ee/app/services/ee/projects/hashed_storage/base_repository_service.rb
...ces/ee/projects/hashed_storage/base_repository_service.rb
+15
-3
No files found.
ee/app/services/ee/projects/hashed_storage/base_repository_service.rb
View file @
385488f8
...
...
@@ -17,7 +17,7 @@ module EE
protected
def
has_design?
gitlab_shell
.
repository_exists?
(
project
.
repository_storage
,
"
#{
old_d
isk_path
}
.design
.git"
)
gitlab_shell
.
repository_exists?
(
project
.
repository_storage
,
"
#{
old_d
esign_disk_path
}
.git"
)
end
override
:move_repositories
...
...
@@ -25,7 +25,7 @@ module EE
result
=
super
if
move_design
result
&&=
move_repository
(
"
#{
old_disk_path
}
.design"
,
"
#{
new_disk_path
}
.design"
)
result
&&=
move_repository
(
old_design_disk_path
,
new_design_disk_path
)
end
result
...
...
@@ -36,9 +36,21 @@ module EE
super
if
move_design
move_repository
(
"
#{
new_disk_path
}
.design"
,
"
#{
old_disk_path
}
.design"
)
move_repository
(
new_design_disk_path
,
old_design_disk_path
)
end
end
def
design_path_suffix
@design_path_suffix
||=
EE
::
Gitlab
::
GlRepository
::
DESIGN
.
path_suffix
end
def
old_design_disk_path
@old_design_disk_path
||=
"
#{
old_disk_path
}#{
design_path_suffix
}
"
end
def
new_design_disk_path
@new_design_disk_path
||=
"
#{
new_disk_path
}#{
design_path_suffix
}
"
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