Skip to content

Commit

Permalink
clone more refs (#2988)
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav authored Jun 20, 2024
1 parent 007fbf5 commit d5b9157
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/sources/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit d5b9157

Please sign in to comment.