Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(agoric-cli): Improve git clone efficiency #8057

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

gibson042
Copy link
Member

Description

Use shallow clone to eliminate unnecessary data transfer.

Security Considerations

n/a

Scaling Considerations

Minor improvement for developers on limited networks.

Documentation Considerations

n/a

Testing Considerations

n/a

@gibson042 gibson042 requested a review from dckc July 17, 2023 19:03
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

The code is fine. Shallow clones seem like a good idea here, but...

I have a vague memory that shallow clones have gotchas and should often be avoided, so you might want review from someone with more git expertise.

@gibson042
Copy link
Member Author

In this case the clone is followed a few lines later by orphaning its git data completely with pspawn('rm', ['-rf', '.git'], { cwd: DIR }), so I'm rather confident that this is fine. But I'll add another reviewer for confirmation.

Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

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

sounds right to me

@gibson042 gibson042 added this pull request to the merge queue Jul 17, 2023
Merged via the queue into master with commit bd1190d Jul 17, 2023
59 checks passed
@gibson042 gibson042 deleted the gibson-2023-07-agoric-cli-cleanup branch July 17, 2023 21:27
mhofman pushed a commit that referenced this pull request Aug 7, 2023
refactor(agoric-cli): Improve git clone efficiency
mhofman pushed a commit that referenced this pull request Aug 7, 2023
refactor(agoric-cli): Improve git clone efficiency
mhofman pushed a commit that referenced this pull request Jan 13, 2024
refactor(agoric-cli): Improve git clone efficiency
mhofman pushed a commit that referenced this pull request Jan 15, 2024
refactor(agoric-cli): Improve git clone efficiency
mhofman pushed a commit that referenced this pull request Jan 19, 2024
refactor(agoric-cli): Improve git clone efficiency
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.

3 participants