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

PackFormatError #7

Closed
Ferenc- opened this issue Feb 13, 2014 · 1 comment
Closed

PackFormatError #7

Ferenc- opened this issue Feb 13, 2014 · 1 comment

Comments

@Ferenc-
Copy link

Ferenc- commented Feb 13, 2014

efergcz@esekilxxen1814:~/git-graph> ls -lah
total 80K
drwxrwxr-x   3 efergcz rnd 4.0K Feb 13 12:07 .
drwxr-xr-x 119 efergcz rnd  24K Feb 13 11:13 ..
drwxrwxr-x   8 efergcz rnd 4.0K Feb 13 11:54 .git
-rw-rw-r--   1 efergcz rnd   35 Feb 13 11:00 .gitignore
-rw-rw-r--   1 efergcz rnd   84 Feb 13 11:00 Gemfile
-rw-rw-r--   1 efergcz rnd  280 Feb 13 11:16 Gemfile.lock
-rw-rw-r--   1 efergcz rnd  437 Feb 13 11:00 README
-rwxrwxr-x   1 efergcz rnd 8.4K Feb 13 11:00 git-graph.rb
-rw-rw-r--   1 efergcz rnd  104 Feb 13 11:00 test.dot
efergcz@esekilxxen1814:~/git-graph> ./git-graph.rb ./
/home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/internal/pack.rb:135:in `block (2 levels) in init_pack': pack /home/efergcz/git-graph/.git/objects/pack/pack-6fb4fe8c8726ba422fa829803e80c27f33125f41.pack has discontinuous index 1 (Grit::GitRuby::Internal::PackFormatError)
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/internal/pack.rb:132:in `times'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/internal/pack.rb:132:in `block in init_pack'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/internal/pack.rb:73:in `with_idx'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/internal/pack.rb:130:in `init_pack'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/internal/pack.rb:46:in `initialize'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:763:in `new'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:763:in `block (2 levels) in load_packs'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:761:in `each'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:761:in `block in load_packs'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:760:in `open'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:760:in `load_packs'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:743:in `initpacks'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:89:in `get_raw_object_by_sha1'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:334:in `walk_log'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:287:in `log'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:306:in `rev_list'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby.rb:70:in `block in rev_list'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby.rb:211:in `block in try_run'
    from /app/ruby/2.0.0/LMWP3/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby.rb:210:in `try_run'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/git-ruby.rb:70:in `rev_list'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/commit.rb:120:in `find_all'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/commit.rb:93:in `lazy_source'
    from /home/efergcz/gems/gems/grit-2.5.0/lib/grit/lazy.rb:31:in `block (2 levels) in lazy_reader'
    from ./git-graph.rb:288:in `block in <main>'
    from ./git-graph.rb:286:in `reject!'
    from ./git-graph.rb:286:in `<main>'
efergcz@esekilxxen1814:~/git-graph> ruby --version
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
@jerith666
Copy link
Owner

At first glance this looks like a bug in grit. But according to https://github.com/mojombo/grit, it's no longer maintained. :(

I'm considering rewriting git-graph in Java using JGit (http://www.eclipse.org/jgit/), but have only just begun exploring that possibility.

Sorry I couldn't be more helpful ...

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

2 participants