Merge branch 'main' into lunny/rename

This commit is contained in:
Lunny Xiao
2026-04-26 18:57:25 +00:00
2 changed files with 58 additions and 0 deletions

View File

@@ -277,6 +277,7 @@ func CloneIfRequired(ctx context.Context, refName plumbing.ReferenceName, input
func gitOptions(token string) (fetchOptions git.FetchOptions, pullOptions git.PullOptions) {
fetchOptions.RefSpecs = []config.RefSpec{"refs/*:refs/*", "HEAD:refs/heads/HEAD"}
fetchOptions.Force = true
pullOptions.Force = true
if token != "" {