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

Fetch only the recent commits when cloning a remote Git repository for mirroring #801

Closed
trustin opened this issue Feb 14, 2023 · 2 comments · Fixed by #808
Closed

Fetch only the recent commits when cloning a remote Git repository for mirroring #801

trustin opened this issue Feb 14, 2023 · 2 comments · Fixed by #808

Comments

@trustin
Copy link
Member

trustin commented Feb 14, 2023

Currently, Central Dogma clones the entire repository when mirroring a remote Git repository. We don't need to fetch the entire graph but only the latest tree. We could specify --depth option so we don't fetch the Git objects that are not used actually.

Related API:

Also, we should:

  • ensure old commits are also pruned when the remote Git repo adds a new commit or force-pushes; and
  • write a test
trustin pushed a commit to trustin/centraldogma that referenced this issue Mar 3, 2023
This is a draft of my implementation for the issue line#801.
@trustin trustin added this to the 0.60.2 milestone Mar 6, 2023
@trustin
Copy link
Member Author

trustin commented Mar 6, 2023

Closed via #808 Thanks a lot, @thachlp! 🙇

@thachlp
Copy link
Member

thachlp commented Mar 6, 2023

Thank you for your support @trustin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants