On Wed, Aug 6, 2014 at 9:32 AM, Markus Koeberl <[email protected]>
wrote:
>
> I am getting very annoying freezes on the terminal from time to time.
> Today I was able to trace them back to a git branch call for my fancy bash
> prompt. Normally it takes 0.06s to call git branch in my $HOME on afs but
> sometimes it takes about 54s. Tracing git branch showed me it is always
> hanging at stat /afs/.git
>

For what it's worth, my hack to work around this is to define
$GIT_CEILING_DIRECTORIES in my ~/.bashrc:

GIT_CEILING_DIRECTORIES=/afs/umich.edu:/afs/.umich.edu

(Obviously, all I care about is my home 'umich.edu' cell)

This doesn't fix anything related to the afsdb/dynroot lookup that's
causing the problem, but it does stop git from misbehaving.

-- 
Jonathan Billings <[email protected]>
College of Engineering - CAEN - Unix and Linux Support

Reply via email to