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