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

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