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
586672f4
Unverified
Commit
586672f4
authored
Apr 28, 2024
by
Jeffrey Morgan
Committed by
GitHub
Apr 28, 2024
Browse files
fix copying model to itself (#4019)
parent
b03408de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
server/images.go
server/images.go
+4
-0
No files found.
server/images.go
View file @
586672f4
...
@@ -710,6 +710,10 @@ func CopyModel(src, dst model.Name) error {
...
@@ -710,6 +710,10 @@ func CopyModel(src, dst model.Name) error {
return
model
.
Unqualified
(
src
)
return
model
.
Unqualified
(
src
)
}
}
if
src
.
Filepath
()
==
dst
.
Filepath
()
{
return
nil
}
manifests
,
err
:=
GetManifestPath
()
manifests
,
err
:=
GetManifestPath
()
if
err
!=
nil
{
if
err
!=
nil
{
return
err
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