|
|
@@ -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) |
|
|
|