Skip to content
Permalink
Browse files
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.
@@ -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)

0 comments on commit 88d5db9

Please sign in to comment.