|
|
|
@@ -706,6 +706,10 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
String metaPath = rootPath + "/metadata"; |
|
|
|
String relatePath = ci4sUsername + "/model/" + modelsVo.getId() + "/" + repositoryName + "/" + branchName + "/model"; |
|
|
|
|
|
|
|
//干掉目标文件夹 |
|
|
|
dvcUtils.deleteDirectory(rootPath); |
|
|
|
FileUtil.renameFile(rootPath, rootPath + "_deleted_" + System.currentTimeMillis()); |
|
|
|
|
|
|
|
//克隆 |
|
|
|
dvcUtils.gitClone(rootPath, projectUrl, oldModelDependencys.get(0).getVersion(), gitLinkUsername, gitLinkPassword); |
|
|
|
dvcUtils.refreshRemoteBranches(rootPath, gitLinkUsername, gitLinkPassword, oldModelDependencys.get(0).getVersion()); |
|
|
|
|