Browse Source

优化dvc测试

dev-opt-homepage
chenzhihang 1 year ago
parent
commit
24798fa4dd
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java

+ 2
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java View File

@@ -184,6 +184,8 @@ public class NewDatasetServiceImpl implements NewDatasetService {
// 命令行操作 git clone 项目地址
dvcUtils.gitClone(localPath1, projectUrl, "master", gitLinkUsername, gitLinkPassword);
dvcUtils.refreshRemoteBranches(localPath1, gitLinkUsername, gitLinkPassword, "master");
//检查是否存在本地重名分支,有的话干掉
dvcUtils.deleteLocalBranch(localPath1, branchName);
// 创建本地分支
dvcUtils.createLocalBranchBasedOnMaster(localPath1, branchName);
//dvc checkout


Loading…
Cancel
Save