Skip to content

Commit 2489510

Browse files
committed
fix: fix test case
Signed-off-by: zongz <zongzhe1024@163.com>
1 parent f064daf commit 2489510

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/client/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,12 @@ func (c *KpmClient) CompileGitPkg(gitOpts *git.CloneOptions, compileOpts *opt.Co
449449
if err != nil {
450450
return nil, reporter.NewErrorEvent(reporter.Bug, err, "internal bugs, please contact us to fix it.")
451451
}
452+
tmpDir = filepath.Join(tmpDir, constants.GitEntry)
453+
452454
// clean the temp dir.
453455
defer os.RemoveAll(tmpDir)
454456

455457
// 2. clone the git repo
456-
tmpDir = filepath.Join(tmpDir, gitOpts.LocalPath)
457458
_, err = git.CloneWithOpts(
458459
git.WithCommit(gitOpts.Commit),
459460
git.WithBranch(gitOpts.Branch),

0 commit comments

Comments
 (0)