Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(shallow-clone): enable auto unshallow unless force-shallow option…
… used

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed Dec 16, 2022
1 parent e235d68 commit 88d5db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/build/image/stapel.go
Expand Up @@ -136,7 +136,7 @@ func generateGitMappings(ctx context.Context, metaConfig *config.Meta, imageBase
if len(imageBaseConfig.Git.Local) != 0 {
localGitRepo := opts.GiterminismManager.LocalGitRepo()

if metaConfig.GitWorktree.GetForceShallowClone() {
if !metaConfig.GitWorktree.GetForceShallowClone() {
isShallowClone, err := localGitRepo.IsShallowClone(ctx)
if err != nil {
return nil, fmt.Errorf("check shallow clone failed: %w", err)
Expand Down

0 comments on commit 88d5db9

Please sign in to comment.