From a54dafb5c5ce984971bc7d3781abc5a095e501fd Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 6 Feb 2025 15:05:27 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- internal/exec/go_getter_utils.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/exec/go_getter_utils.go b/internal/exec/go_getter_utils.go index 38797fb071..f76699f582 100644 --- a/internal/exec/go_getter_utils.go +++ b/internal/exec/go_getter_utils.go @@ -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")