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

32b support #105

Closed
gregtatcam opened this issue Jul 17, 2015 · 7 comments
Closed

32b support #105

gregtatcam opened this issue Jul 17, 2015 · 7 comments
Labels

Comments

@gregtatcam
Copy link

run 'ogit clone --bare remote-repo local-repo', then cd to local-repo and run 'git reset master --hard'. Get errors:

error: wrong index v2 file size in .git/objects/pack/pack-88a6bbf29934073da5deb72f2baadacd365dcda9.idx
error: wrong index v2 file size in .git/objects/pack/pack-88a6bbf29934073da5deb72f2baadacd365dcda9.idx
fatal: Could not parse object 'master'.

Git version 1.6.2.

@samoht
Copy link
Member

samoht commented Jul 18, 2015

Is it easily reproducible? Which remote repo? Did you set up a depth parameter?

On 17 Jul 2015, at 13:06, gregtatcam [email protected] wrote:

run 'ogit clone --bare remote-repo local-repo', then cd to local-repo and run 'git reset master --hard'. Get errors:

error: wrong index v2 file size in .git/objects/pack/pack-88a6bbf29934073da5deb72f2baadacd365dcda9.idx
error: wrong index v2 file size in .git/objects/pack/pack-88a6bbf29934073da5deb72f2baadacd365dcda9.idx
fatal: Could not parse object 'master'.

Git version 1.6.2.


Reply to this email directly or view it on GitHub.

@gregtatcam
Copy link
Author

it happens with just one file in the repository. It only happens on rPi. I didn't set the depth.

  • create a repo
    git init repo; cd repo; echo "a" > a; git add -A; git commit -m "a"
  • run daemon
    git daemon --export-all --reuseaddr --base-path=/ /
  • clone
    ogit clone --bare repo
    I compared .git/index and .git/objects/pack/*.idx on MAC and rPi and they are different. I can send tar of the repo if it helps.

@gregtatcam
Copy link
Author

I built 32-bit Ubuntu 15.04 for Virtual Box. The issue is reproducible on this system. I can provide the image.

@samoht samoht added the bug label Jul 18, 2015
@samoht
Copy link
Member

samoht commented Jul 18, 2015

Thanks for the report! I looks like a 64b overflow in the sizes/offsets handling in the pack file. Should be easy to fix.

@gregtatcam
Copy link
Author

Great!

On Jul 18, 2015, at 4:09 PM, Thomas Gazagnaire [email protected] wrote:

Thanks for the report! I looks like a 64b overflow in the sizes/offsets handling in the pack file. Should be easy to fix.


Reply to this email directly or view it on GitHub #105 (comment).

@samoht
Copy link
Member

samoht commented Jul 21, 2015

This is actually a bit harder than I though, as it might need a custom layer on top of bigarrays to deal with large files (both cstruct and mstruct do not work well on 32b platforms it seems...)

@samoht
Copy link
Member

samoht commented Jul 21, 2015

See mirage/ocaml-cstruct#71

@samoht samoht changed the title running 'git reset master --hard' after 'ogit clone' fails 32b support Jul 31, 2015
@samoht samoht closed this as completed Aug 2, 2015
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

2 participants