fix copying model to itself (#4019)

This commit is contained in:
Jeffrey Morgan 2024-04-28 23:47:49 -04:00 committed by GitHub
parent b03408de74
commit 586672f490
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -710,6 +710,10 @@ func CopyModel(src, dst model.Name) error {
return model.Unqualified(src)
}
if src.Filepath() == dst.Filepath() {
return nil
}
manifests, err := GetManifestPath()
if err != nil {
return err