Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2480/head
zouap 3 years ago
parent
commit
6d38e4ab9f
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      routers/repo/ai_model_manage.go
  2. +2
    -2
      routers/repo/cloudbrain.go

+ 2
- 2
routers/repo/ai_model_manage.go View File

@@ -141,7 +141,7 @@ func SaveNewNameModel(ctx *context.Context) {
return
}
SaveModel(ctx)
ctx.Status(200)
log.Info("save model end.")
}

@@ -181,7 +181,7 @@ func SaveModel(ctx *context.Context) {
ctx.Error(500, fmt.Sprintf("save model error. %v", err))
return
}
ctx.Status(200)
log.Info("save model end.")
}



+ 2
- 2
routers/repo/cloudbrain.go View File

@@ -1135,7 +1135,7 @@ func GetModelDirs(jobName string, parentDir string) (string, error) {
} else {
req = "baseDir=" + modelActualPath + "&parentDir=" + parentDir
}
log.Info("modelActurePath=" + modelActualPath)
return getDirs(req)
}

@@ -1186,7 +1186,7 @@ func downloadCode(repo *models.Repository, codePath, branchName string) error {
log.Error("Failed to clone repository: %s (%v)", repo.FullName(), err)
return err
}
log.Info("srcPath=" + CLONE_FILE_PREFIX + repo.RepoPath() + " codePath=" + codePath)
configFile, err := os.OpenFile(codePath+"/.git/config", os.O_RDWR, 0666)
if err != nil {
log.Error("open file(%s) failed:%v", codePath+"/,git/config", err)


Loading…
Cancel
Save