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

Getting GitTimeout when using commit_count on large repository #64

Closed
rhaamo opened this issue May 2, 2011 · 2 comments
Closed

Getting GitTimeout when using commit_count on large repository #64

rhaamo opened this issue May 2, 2011 · 2 comments

Comments

@rhaamo
Copy link

rhaamo commented May 2, 2011

When doing some tests with Grit on my app i've got Grit::Errors::GitTimeout when using commit_count on a large repository (linux-2.6.38 in fact).

Running the command in shell just output a lot of hashes and no stale or stop. Is it a bug or how i can having it to not timeout ? It seems there is a Grit::Git.git_timeout but increasing the timeout if getting the error isn't really possible (and great...).

ruby-1.9.2-p180 :026 > z=Grit::Repo.new('/home/marc/src/linux-2.6.38.y')
 => #<Grit::Repo "/home/marc/src/linux-2.6.38.y/.git"> 
ruby-1.9.2-p180 :027 > z.commit_count('master')
D, [2011-05-02T15:20:35.169447 #20527] DEBUG -- : /usr/bin/git --git-dir=/home/marc/src/linux-2.6.38.y/.git --no-pager rev-list master
Grit::Errors::GitTimeout: Grit::Errors::GitTimeout
ruby-1.9.2-p180 :029 > Grit.version
 => "2.4.1"
% time /usr/bin/git --git-dir=/home/marc/src/linux-2.6.38.y/.git --no-pager rev-list master
/usr/bin/git --git-dir=/home/marc/src/linux-2.6.38.y/.git --no-pager rev-list  8,15s user 1,11s system 51% cpu 17,936 total
@rhaamo
Copy link
Author

rhaamo commented May 16, 2011

Finally found that i need to bump Git.git_max_size, same exception for the two things..

@rhaamo rhaamo closed this as completed May 16, 2011
@geissonator
Copy link

If you're using egit within eclipse go to Window->Preferences->Team->Git and set the timeout to whatever you need.

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