Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Feb 6, 2025
1 parent a9c8f48 commit a54dafb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/exec/go_getter_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ func (d *CustomGitHubDetector) Detect(src, _ string) (string, bool, error) {
}
}

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

0 comments on commit a54dafb

Please sign in to comment.