forked from tangled.org/core
Monorepo for Tangled

spindle/models: fix setting clone depth

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>

anirudh.fi 80373ac0 b3734b16

verified
Changed files
+1 -1
spindle
+1 -1
spindle/models/setup_steps.go
··· 63 63 cloneDepth := 1 64 64 if twf.Clone.Depth > 1 { 65 65 cloneDepth = int(twf.Clone.Depth) 66 - cloneCmd = append(cloneCmd, []string{"--depth", fmt.Sprintf("%d", cloneDepth)}...) 67 66 } 67 + cloneCmd = append(cloneCmd, []string{"--depth", fmt.Sprintf("%d", cloneDepth)}...) 68 68 69 69 if twf.Clone.Submodules { 70 70 cloneCmd = append(cloneCmd, "--recursive")