Skip to content

Commit a54dafb

Browse files
[autofix.ci] apply automated fixes
1 parent a9c8f48 commit a54dafb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/exec/go_getter_utils.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ func (d *CustomGitHubDetector) Detect(src, _ string) (string, bool, error) {
136136
}
137137
}
138138

139-
// Set "depth=1" for a shallow clone if not specified.
140-
// In Go-Getter, "depth" controls how many revisions are cloned:
141-
// - `depth=1` fetches only the latest commit (faster, less bandwidth).
142-
// - `depth=` (empty) performs a full clone (default Git behavior).
143-
// - `depth=N` clones the last N revisions.
139+
// Set "depth=1" for a shallow clone if not specified.
140+
// In Go-Getter, "depth" controls how many revisions are cloned:
141+
// - `depth=1` fetches only the latest commit (faster, less bandwidth).
142+
// - `depth=` (empty) performs a full clone (default Git behavior).
143+
// - `depth=N` clones the last N revisions.
144144
q := parsedURL.Query()
145145
if _, exists := q["depth"]; !exists {
146146
q.Set("depth", "1")

0 commit comments

Comments
 (0)