Skip to content

Commit 68ace4b

Browse files
Fix formatting (gofmt alignment)
1 parent fb31cac commit 68ace4b

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

git/git.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ type CloneRepoOptions struct {
3535
Path string
3636
Storage billy.Filesystem
3737

38-
RepoURL string
39-
RepoAuth transport.AuthMethod
40-
Progress sideband.Progress
41-
Insecure bool
42-
SingleBranch bool
43-
ThinPack bool
44-
Depth int
45-
CABundle []byte
46-
ProxyOptions transport.ProxyOptions
38+
RepoURL string
39+
RepoAuth transport.AuthMethod
40+
Progress sideband.Progress
41+
Insecure bool
42+
SingleBranch bool
43+
ThinPack bool
44+
Depth int
45+
CABundle []byte
46+
ProxyOptions transport.ProxyOptions
4747
SubmoduleDepth int // 0 = disabled, >0 = max recursion depth
4848
}
4949

@@ -366,14 +366,14 @@ func CloneOptionsFromOptions(logf func(string, ...any), options options.Options)
366366
}
367367

368368
cloneOpts := CloneRepoOptions{
369-
RepoURL: options.GitURL,
370-
Path: options.WorkspaceFolder,
371-
Storage: options.Filesystem,
372-
Insecure: options.Insecure,
373-
SingleBranch: options.GitCloneSingleBranch,
374-
ThinPack: options.GitCloneThinPack,
375-
Depth: int(options.GitCloneDepth),
376-
CABundle: caBundle,
369+
RepoURL: options.GitURL,
370+
Path: options.WorkspaceFolder,
371+
Storage: options.Filesystem,
372+
Insecure: options.Insecure,
373+
SingleBranch: options.GitCloneSingleBranch,
374+
ThinPack: options.GitCloneThinPack,
375+
Depth: int(options.GitCloneDepth),
376+
CABundle: caBundle,
377377
SubmoduleDepth: options.GitCloneSubmodules,
378378
}
379379

options/options.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,9 @@ func (o *Options) CLI() serpent.OptionSet {
431431
"it will not be turned on for the domain dev.azure.com.",
432432
},
433433
{
434-
Flag: "git-clone-submodules",
435-
Env: WithEnvPrefix("GIT_CLONE_SUBMODULES"),
436-
Value: SubmoduleDepthOf(&o.GitCloneSubmodules),
434+
Flag: "git-clone-submodules",
435+
Env: WithEnvPrefix("GIT_CLONE_SUBMODULES"),
436+
Value: SubmoduleDepthOf(&o.GitCloneSubmodules),
437437
Description: "Clone Git submodules after cloning the repository. " +
438438
"Accepts 'true' (max depth 10), 'false' (disabled), or a positive integer for max recursion depth.",
439439
},

0 commit comments

Comments
 (0)