Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
65dcd0ce
"vscode:/vscode.git/clone" did not exist on "3c7a0e4442c41bc5afa183fe4dd0672a729a3ec9"
Unverified
Commit
65dcd0ce
authored
Oct 10, 2023
by
Jeffrey Morgan
Committed by
GitHub
Oct 10, 2023
Browse files
always cleanup blob download (#747)
parent
0040f543
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
server/download.go
server/download.go
+1
-0
No files found.
server/download.go
View file @
65dcd0ce
...
...
@@ -314,6 +314,7 @@ func downloadBlob(ctx context.Context, opts downloadOpts) error {
requestURL
:=
opts
.
mp
.
BaseURL
()
requestURL
=
requestURL
.
JoinPath
(
"v2"
,
opts
.
mp
.
GetNamespaceRepository
(),
"blobs"
,
opts
.
digest
)
if
err
:=
download
.
Prepare
(
ctx
,
requestURL
,
opts
.
regOpts
);
err
!=
nil
{
blobDownloadManager
.
Delete
(
opts
.
digest
)
return
err
}
...
...
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