From ec6dadd55ce47bace490866dbda6b8242188eaac Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Fri, 6 Jun 2025 08:44:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96dvc=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java index c5290afe..7e6c4e9a 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/NewDatasetServiceImpl.java @@ -145,6 +145,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { String projectUrl = gitCloneEndpoint + "/" + owner + "/" + repositoryName + ".git"; // 创建master空分支 + dvcUtils.gitClone(localPath, projectUrl, "master", gitLinkUsername, gitLinkPassword); // 拼接生产的元数据后写入yaml文件 datasetVo.setCreateBy(String.valueOf(StringUtils.isNotEmpty((String) userInfo.get("nickname")) ? userInfo.get("nickname") : userInfo.get("login"))); datasetVo.setUpdateTime(DateUtils.getTime()); @@ -157,7 +158,6 @@ 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);