fix copying model to itself (#4019)
This commit is contained in:
parent
b03408de74
commit
586672f490
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue