Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Doesn't work with Ruby 2.0 #31

Closed
victorcoder opened this Issue March 11, 2013 · 2 comments

2 participants

Victor Castell Jonathan Moore
Victor Castell

Following the stack trace:

/Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/internal/loose.rb:108:in unpack_object_header_gently': undefined method>>' for "x":String (NoMethodError)
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/internal/loose.rb:56:in get_raw_object'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/internal/loose.rb:32:in
[]'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:84:in block in get_raw_object_by_sha1'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:83:in
each'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:83:in get_raw_object_by_sha1'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:334:in
walk_log'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:287:in log'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:306:in
rev_list'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby.rb:70:in block in rev_list'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby.rb:211:in
block in try_run'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/timeout.rb:65:in timeout'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby.rb:210:in
try_run'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby.rb:70:in rev_list'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/commit.rb:120:in
find_all'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/repo.rb:427:in commit'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/git.rb:57:in
initialize'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:23:in new'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:23:in
initialize'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:70:in initialize'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:12:in
new'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:12:in create'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/command.rb:122:in
deployment'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/command/deploy.rb:30:in execute'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/application.rb:38:in
block in execute'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/command.rb:92:in initialize'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/application.rb:36:in
new'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/application.rb:36:in execute'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/application.rb:7:in
execute'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/bin/dandelion:7:in <top (required)>'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/bin/dandelion:23:in
load'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/bin/dandelion:23:in <main>'

Jonathan Moore

There are a few open pull requests for Grit to be updated to Ruby 2.0.0, but for now it's hardcoded to 1.9
mojombo/grit#152

You can either use Ruby 1.9.3 for now, wait for https://github.com/mojombo/grit/ to update to 2.0.0, or modify https://github.com/scttnlsn/dandelion/ to use https://github.com/gitlabhq/grit gem install gitlab-grit

Victor Castell

I reported it without noticing, thanks.

Victor Castell victorcoder closed this March 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.