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

Support reading from .git/objects/pack/* #8

Closed
billiegoose opened this issue Oct 3, 2017 · 3 comments
Closed

Support reading from .git/objects/pack/* #8

billiegoose opened this issue Oct 3, 2017 · 3 comments
Labels
Milestone

Comments

@billiegoose
Copy link
Member

A fresh clone is leaving my packfiles packed. To be fully compatible with git, we need to support reading from .pack, .idx file pairs in the .git/objects/pack directory.

@billiegoose billiegoose added the bug label Oct 3, 2017
@billiegoose
Copy link
Member Author

The recommended workaround for now is to manually unpack the packfile into the "one-file one-object" format so that it can be understood by isomorphic-git.

git clone https://github.com/wmhilton/isomorphic-git
cd isomorphic-git
mv .git/objects/pack/* .
git unpack-objects < *.pack

@billiegoose
Copy link
Member Author

Status update

The GitPackfile model can now read .pack files using the accompanying .idx file. The next step is to enhance GitObjectManager to read in just the .idx files, and look up objects from the packfile when there's a miss in the objects folder. And also to generate a .idx file during clone.

@billiegoose
Copy link
Member Author

Status Update 2

This work is complete in the develop branch. GitObjectManager lazy loads packfiles to retrieve commits seamlessly.

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

No branches or pull requests

1 participant