Skip to content

Commit 67335e7

Browse files
anish-dangi-wdctekton-robot
authored andcommitted
Fix typo introduced in git-init (#2598)
1 parent 62f41d8 commit 67335e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/git/git.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func SubmoduleFetch(logger *zap.SugaredLogger, spec FetchSpec) error {
169169
}
170170
updateArgs := []string{"submodule", "update", "--recursive"}
171171
if spec.Depth > 0 {
172-
updateArgs = append(updateArgs, "--depth", fmt.Sprintf("--depth=%d", spec.Depth))
172+
updateArgs = append(updateArgs, fmt.Sprintf("--depth=%d", spec.Depth))
173173
}
174174
if _, err := run(logger, "", updateArgs...); err != nil {
175175
return err

0 commit comments

Comments
 (0)