forked from tangled.org/core
this repo has no description

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
···
cloneDepth := 1
if twf.Clone.Depth > 1 {
cloneDepth = int(twf.Clone.Depth)
-
cloneCmd = append(cloneCmd, []string{"--depth", fmt.Sprintf("%d", cloneDepth)}...)
}
+
cloneCmd = append(cloneCmd, []string{"--depth", fmt.Sprintf("%d", cloneDepth)}...)
if twf.Clone.Submodules {
cloneCmd = append(cloneCmd, "--recursive")