fix: workspace 本地仓库目录修改为:./workspace/{workspace_id}

This commit is contained in:
shizhendong
2024-10-21 14:23:02 +08:00
parent 6c6327382f
commit 4a5783b20e

View File

@@ -74,11 +74,11 @@ public class GitServiceImpl implements IGitService {
/**
* get repository path
* path= {webRootPath}/workspeace/{workspace.name}
* path= {webRootPath}/workspace/{workspace.id}
*/
private File getRepoDirPath(String workspaceId) {
WorkspaceEntity workspace = workspaceService.getById(workspaceId);
File repoDir = T.FileUtil.file(T.WebPathUtil.getRootPath(), "workspeace", workspace.getName());
File repoDir = T.FileUtil.file(T.WebPathUtil.getRootPath(), "workspace", workspace.getId());
return repoDir;
}