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

Git Bundle Handling #1246

Open
rmspeers opened this issue Dec 20, 2023 · 3 comments
Open

Git Bundle Handling #1246

rmspeers opened this issue Dec 20, 2023 · 3 comments

Comments

@rmspeers
Copy link

It appears that in the bundle.py, there is at least support for the file format, and packing seems to be well supported.

I do not see a way, however, to do 2 things:

  1. git pull from a bundle. When I try to give the path as the remote, an exception propagates from down in client.py's _open_repo function.

  2. create a bundle (git bundle create) from a repo

Could anyone share ideas or tips?

@rmspeers
Copy link
Author

@jelmer or anyone, do you have any suggestions? I'm not familiar with Git internals but am happy to try to add support if you have suggestions.

@beninada
Copy link

@rmspeers @jelmer Hello, just curious - did you happen to make any progress with bundles?

I've managed to create a bundle by generating a PackData object and adding it to a dulwich bundle that I construct manually. I can then clone from that bundle using the CLI git, but I haven't yet found an ergonomic way to clone and pull from it in python using dulwich.

@jelmer
Copy link
Owner

jelmer commented Sep 17, 2024

Yeah, that's currently the only way to do it. I'd be grateful for a PR if you wanted to improve the APIs around bundles

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

No branches or pull requests

3 participants