git-cleanup
git-cleanup copied to clipboard
Error
Hi, I keep getting this error when running cleaning out my branches.
/Users/username/.rvm/gems/ruby-1.9.3-p374/gems/grit-2.2.0/lib/grit/git.rb:273:in `rescue in sh': Grit::Git::GitTimeout (Grit::Git::GitTimeout)
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/grit-2.2.0/lib/grit/git.rb:252:in `sh'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/grit-2.2.0/lib/grit/git.rb:245:in `run'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/grit-2.2.0/lib/grit/git.rb:221:in `method_missing'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/grit-2.2.0/lib/grit/git.rb:228:in `native'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/git-cleanup-0.2.1/lib/git-cleanup/branch.rb:22:in `diff'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/git-cleanup-0.2.1/lib/git-cleanup.rb:30:in `block in run'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/git-cleanup-0.2.1/lib/git-cleanup.rb:25:in `each'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/git-cleanup-0.2.1/lib/git-cleanup.rb:25:in `each_with_index'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/git-cleanup-0.2.1/lib/git-cleanup.rb:25:in `run'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/gems/git-cleanup-0.2.1/bin/git-cleanup:38:in `<top (required)>'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/bin/git-cleanup:19:in `load'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/bin/git-cleanup:19:in `<main>'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/username/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `<main>'
Got this in ruby-1.8.7-p371 and ruby-1.9.3-p374. I am running a Mac 10.8.2 mountain lion, and Ruby Version Manager.
Can you try the code from master? PR #6 (from earlier today) works around these errors. I don't know why they're happening though.
@mloughran I tried the latest master and it did not help. I think rvm has something to do with it. I will try without rvm this weekend, will let you know.