From d5b9157d2bfc43e4b8de9ae04874f8eb8d73959c Mon Sep 17 00:00:00 2001 From: Zachary Rice Date: Thu, 20 Jun 2024 09:40:03 -0500 Subject: [PATCH] clone more refs (#2988) --- pkg/sources/git/git.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.go index 242222c0f..1c8af69cf 100644 --- a/pkg/sources/git/git.go +++ b/pkg/sources/git/git.go @@ -419,6 +419,8 @@ func executeClone(ctx context.Context, params cloneParams) (*git.Repository, err "clone", cloneURL.String(), params.clonePath, + "-c", + "remote.origin.fetch=+refs/*:refs/remotes/origin/*", "--quiet", // https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-code--quietcode } gitArgs = append(gitArgs, params.args...)