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 5491c1f commit a2fb7a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/microservice/aslan/core/service/service/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func preloadGerritService(detail *systemconfig.CodeHost, repoName, branchName, r
func preloadGiteeService(detail *systemconfig.CodeHost, repoOwner, repoName, branchName, remoteName, loadPath string, isDir bool) ([]string, error) {
ret := make([]string, 0)

if remoteName == "" {
remoteName = "origin"
}
base := path.Join(config.S3StoragePath(), repoName)
if exist, err := util.PathExists(base); !exist {
log.Warnf("path does not exist,err:%s", err)
Expand Down

0 comments on commit a2fb7a5

Please sign in to comment.