Grit Times Out #4

Closed
smith opened this Issue Oct 20, 2010 · 4 comments

Comments

Projects
None yet
3 participants

smith commented Oct 20, 2010

On a large (365M on disk) repo, when doing git up I get:

/usr/lib/ruby/gems/1.8/gems/grit-2.3.0/lib/grit/git.rb:278:in `sh': Grit::Git::GitTimeout (Grit::Git::GitTimeout)
from /usr/lib/ruby/gems/1.8/gems/grit-2.3.0/lib/grit/git.rb:250:in `run'
from /usr/lib/ruby/gems/1.8/gems/grit-2.3.0/lib/grit/git.rb:221:in `method_missing'
from /usr/lib/ruby/gems/1.8/gems/grit-2.3.0/lib/grit/status.rb:143:in `ls_files'
from /usr/lib/ruby/gems/1.8/gems/grit-2.3.0/lib/grit/status.rb:91:in `construct_status'
from /usr/lib/ruby/gems/1.8/gems/grit-2.3.0/lib/grit/status.rb:13:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/grit-2.3.0/lib/grit/repo.rb:231:in `new'
from /usr/lib/ruby/gems/1.8/gems/grit-2.3.0/lib/grit/repo.rb:231:in `status'
from /usr/lib/ruby/gems/1.8/gems/git-up-0.3.2/lib/git-up.rb:69:in `with_stash'
from /usr/lib/ruby/gems/1.8/gems/git-up-0.3.2/lib/git-up.rb:14:in `run'
from /usr/lib/ruby/gems/1.8/gems/git-up-0.3.2/bin/git-up:5
from /usr/bin/git-up:19:in `load'
from /usr/bin/git-up:19

Not sure if I can adjust Grit or git-up timeout settings.

Owner

aanand commented Oct 25, 2010

Well, yuck. Looks like Grit::Git.git_timeout might be what you want. If you have success tweaking it, send me a pull request!

I get the same on the Qt repository git://gitorious.org/qt/qt.git

I can't quite understand where you've initialised the Git object or I'd have a look at this :)

Owner

aanand commented Jan 17, 2011

I initialize a Grit::Repo object on line 57 of git-up.rb. I don't talk directly to the Git class at any time.

Hope that helps, and sorry I don't have the time to look at it myself!

@aanand aanand closed this in 7806e63 Apr 19, 2012

aanand added a commit that referenced this issue Apr 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment