Skip to content

Conversation

@ddompe
Copy link

@ddompe ddompe commented Jul 3, 2023

Git clone command added support for a local reference repository in order to minimize the network traffic and load on the git servers for big repositories. Adding support to specify such reference git repository in the checkout action.

The is very useful in big repositories hosted in GitHub Enterprise deployments that runs massive scales of CI jobs across distributed geographies.

Tested manually in my private GitHub Enterprise instances, but I lack the knowledge to create a unit test for this. Sharing to upstream so it can be taken from here, or pulled by other people needing it (see #22 and #687)

@ddompe ddompe requested a review from a team as a code owner July 3, 2023 17:09
@Pospelove
Copy link

does this work for git lfs?

Copy link

@tbranch227 tbranch227 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. This feature really needs to be supported by this action.

@tbranch227
Copy link

does this work for git lfs?

I believe it does. We use --reference with our own processes (not this action) and it's a big performance improvement and offloads work from the server and WAN links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants