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
14c7eb75
Commit
14c7eb75
authored
Dec 30, 2020
by
Vladimir Shushlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename the variable
parent
01eafdbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/services/projects/update_pages_service.rb
app/services/projects/update_pages_service.rb
+3
-3
No files found.
app/services/projects/update_pages_service.rb
View file @
14c7eb75
...
...
@@ -38,11 +38,11 @@ module Projects
raise
InvalidStateError
,
'build SHA is outdated for this ref'
unless
latest?
# Create temporary directory in which we will extract the artifacts
make_secure_tmp_dir
(
tmp_path
)
do
|
archive
_path
|
extract_archive!
(
archive
_path
)
make_secure_tmp_dir
(
tmp_path
)
do
|
tmp
_path
|
extract_archive!
(
tmp
_path
)
# Check if we did extract public directory
archive_public_path
=
File
.
join
(
archive
_path
,
PUBLIC_DIR
)
archive_public_path
=
File
.
join
(
tmp
_path
,
PUBLIC_DIR
)
raise
InvalidStateError
,
'pages miss the public folder'
unless
Dir
.
exist?
(
archive_public_path
)
raise
InvalidStateError
,
'build SHA is outdated for this ref'
unless
latest?
...
...
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