puppetlabs / r10k

Smarter Puppet deployment
Other
802 stars 355 forks source link

Limit Rugged Control Repo refspec #1393

Open seanmil opened 3 weeks ago

seanmil commented 3 weeks ago

Some Git platforms (e.g. GitLab) store additional references beyond the ones typically found in refs/heads for various tracking/historical reference purposes. For Control Repos which have been around a long time these additional refs can number in the tens of thousands. Refs that numerous seem to cause issues with some versions of Rugged being unable to properly clone and reference the Control Repo.

This patch limits Control Repo reference fetching to refs/heads, which is all R10K should need anyways.

See https://docs.gitlab.com/ee/development/gitaly.html#gitlab-specific-references for details on some of these additional references.