Skip to content

Commit

Permalink
fix code download issue
Browse files Browse the repository at this point in the history
Signed-off-by: allenshen <[email protected]>
  • Loading branch information
AllenShen committed Dec 26, 2023
1 parent 56760e1 commit 5491c1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/microservice/aslan/core/service/service/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func preloadGiteeService(detail *systemconfig.CodeHost, repoOwner, repoName, bra
base := path.Join(config.S3StoragePath(), repoName)
if exist, err := util.PathExists(base); !exist {
log.Warnf("path does not exist,err:%s", err)
log.Infof("------- start run git commands, %s %s %s %s %s %s", repoOwner, repoName, branchName, remoteName, base, loadPath)
err = command.RunGitCmds(detail, repoOwner, repoOwner, repoName, branchName, remoteName)
if err != nil {
return nil, e.ErrPreloadServiceTemplate.AddDesc(fmt.Sprintf("failed to clone code, err: %s", err.Error()))
Expand Down

0 comments on commit 5491c1f

Please sign in to comment.