Skip to content

Commit

Permalink
removed git subdirectory when download from git Downloader
Browse files Browse the repository at this point in the history
Signed-off-by: Asish Kumar <[email protected]>
  • Loading branch information
officialasishkumar committed May 30, 2024
1 parent 33f0bac commit e496a6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import (
"errors"
"fmt"
"io"
"path/filepath"

v1 "github.com/opencontainers/image-spec/specs-go/v1"
"kcl-lang.io/kpm/pkg/constants"
"kcl-lang.io/kpm/pkg/git"
"kcl-lang.io/kpm/pkg/oci"
pkg "kcl-lang.io/kpm/pkg/package"
Expand Down Expand Up @@ -170,7 +168,7 @@ func (d *GitDownloader) Download(opts DownloadOptions) error {
git.WithBranch(gitSource.Branch),
git.WithTag(gitSource.Tag),
git.WithRepoURL(gitSource.Url),
git.WithLocalPath(filepath.Join(opts.LocalPath, constants.GitEntry)),
git.WithLocalPath(opts.LocalPath),
)

if err != nil {
Expand Down

0 comments on commit e496a6f

Please sign in to comment.