Skip to content

Commit

Permalink
Fix typo introduced in git-init (#2598)
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-dangi-wdc authored and tekton-robot committed May 12, 2020
1 parent 62f41d8 commit 67335e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func SubmoduleFetch(logger *zap.SugaredLogger, spec FetchSpec) error {
}
updateArgs := []string{"submodule", "update", "--recursive"}
if spec.Depth > 0 {
updateArgs = append(updateArgs, "--depth", fmt.Sprintf("--depth=%d", spec.Depth))
updateArgs = append(updateArgs, fmt.Sprintf("--depth=%d", spec.Depth))
}
if _, err := run(logger, "", updateArgs...); err != nil {
return err
Expand Down

0 comments on commit 67335e7

Please sign in to comment.