feat: GoGitActionCache shallow fetch (#2677)

* speed up cloning iff feature flag is on, should not have any negative impact
This commit is contained in:
ChristopherHX
2025-02-22 15:29:03 +01:00
committed by GitHub
parent bce0f19a83
commit 16bdce5f1f

View File

@@ -77,6 +77,7 @@ func (c GoGitActionCache) Fetch(ctx context.Context, cacheDir, url, ref, token s
},
Auth: auth,
Force: true,
Depth: 1,
}); err != nil {
return "", fmt.Errorf("GoGitActionCache failed to fetch %s with ref %s at %s: %w", url, ref, gitPath, err)
}