|
|
|
@@ -157,6 +157,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
|
|
|
|
// dvc init 初始化 |
|
|
|
dvcUtils.mkdir(datasetPath); |
|
|
|
dvcUtils.gitClone(localPath, projectUrl, "master", gitLinkUsername, gitLinkPassword); |
|
|
|
dvcUtils.dvcInit(localPath); |
|
|
|
// 配置远程S3地址 |
|
|
|
dvcUtils.dvcRemoteAdd(localPath, s3Path); |
|
|
|
@@ -171,7 +172,6 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
// dvc push 到远程S3 |
|
|
|
dvcUtils.dvcPush(localPath); |
|
|
|
|
|
|
|
|
|
|
|
// 创建分支 |
|
|
|
String branchName = datasetVo.getVersion(); |
|
|
|
gitService.createBranch(token, owner, repositoryName, branchName, "master"); |
|
|
|
|