Skip to content

Commit e496a6f

Browse files
removed git subdirectory when download from git Downloader
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
1 parent 33f0bac commit e496a6f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/downloader/downloader.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ import (
44
"errors"
55
"fmt"
66
"io"
7-
"path/filepath"
87

98
v1 "github.com/opencontainers/image-spec/specs-go/v1"
10-
"kcl-lang.io/kpm/pkg/constants"
119
"kcl-lang.io/kpm/pkg/git"
1210
"kcl-lang.io/kpm/pkg/oci"
1311
pkg "kcl-lang.io/kpm/pkg/package"
@@ -170,7 +168,7 @@ func (d *GitDownloader) Download(opts DownloadOptions) error {
170168
git.WithBranch(gitSource.Branch),
171169
git.WithTag(gitSource.Tag),
172170
git.WithRepoURL(gitSource.Url),
173-
git.WithLocalPath(filepath.Join(opts.LocalPath, constants.GitEntry)),
171+
git.WithLocalPath(opts.LocalPath),
174172
)
175173

176174
if err != nil {

0 commit comments

Comments
 (0)