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
7781c660
Commit
7781c660
authored
Feb 09, 2022
by
Andrew Conrad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple typos in LFS download service
parent
b93442a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/services/projects/lfs_pointers/lfs_download_service.rb
app/services/projects/lfs_pointers/lfs_download_service.rb
+2
-2
No files found.
app/services/projects/lfs_pointers/lfs_download_service.rb
View file @
7781c660
...
@@ -34,7 +34,7 @@ module Projects
...
@@ -34,7 +34,7 @@ module Projects
def
wrap_download_errors
(
&
block
)
def
wrap_download_errors
(
&
block
)
yield
yield
rescue
SizeError
,
OidError
,
ResponseError
,
StandardError
=>
e
rescue
SizeError
,
OidError
,
ResponseError
,
StandardError
=>
e
error
(
"LFS file with oid
#{
lfs_oid
}
could't be downloaded from
#{
lfs_sanitized_url
}
:
#{
e
.
message
}
"
)
error
(
"LFS file with oid
#{
lfs_oid
}
could
n
't be downloaded from
#{
lfs_sanitized_url
}
:
#{
e
.
message
}
"
)
end
end
def
download_lfs_file!
def
download_lfs_file!
...
@@ -104,7 +104,7 @@ module Projects
...
@@ -104,7 +104,7 @@ module Projects
rescue
StandardError
=>
e
rescue
StandardError
=>
e
# If the lfs file is successfully downloaded it will be removed
# If the lfs file is successfully downloaded it will be removed
# when it is added to the project's lfs files.
# when it is added to the project's lfs files.
# Nevertheless if any excetion raises the file would remain
# Nevertheless if any exce
p
tion raises the file would remain
# in the file system. Here we ensure to remove it
# in the file system. Here we ensure to remove it
File
.
unlink
(
file
)
if
File
.
exist?
(
file
)
File
.
unlink
(
file
)
if
File
.
exist?
(
file
)
...
...
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