notfixed 561727 1:1.6.0-1 fixed 561727 1:1.6.5.3-1 tags 561727 + patch lenny upstream fixed-upstream thanks
Hi, Thanks for the report. This bug was introduced by v1.5.5-rc0~137^2~2 (help: use parseopt, 2008-02-24), so it does not apply to etch. It was fixed by v1.6.5.3~34 (help -a: do not unnecessarily look for a repository, 2009-09-04), so fortunately it does not apply to squeeze any more, either. See <http://bugs.debian.org/539273>. Of course, the bug is present in lenny. Vincent Lefevre wrote: > On 2009-12-19 23:06:52 +0100, Vincent Lefevre wrote: >> When I connect by ssh, the connection sometimes freezes before I get >> the prompt. When this happens, a "ps -aef" always shows processes >> like: >> >> UID PID PPID C STIME TTY TIME CMD >> vlefevre 22902 22901 0 22:45 pts/0 00:00:00 -bash >> vlefevre 22903 22902 0 22:45 pts/0 00:00:00 git help -a >> vlefevre 22905 22902 0 22:45 pts/0 00:00:00 egrep ^ >> >> and these commands come from /etc/bash_completion.d/git (note that [...] > 31817 0.000145 getcwd("/home/vlefevre"..., 4096) = 15 > 31817 0.000029 stat(".git", 0x7fff603c5a60) = -1 ENOENT (No such file or > directory) > 31817 0.000035 access(".git/objects", X_OK) = -1 ENOENT (No such file or > directory) > 31817 0.000024 access("./objects", X_OK) = -1 ENOENT (No such file or > directory) > 31817 0.000023 chdir("..") = 0 > 31817 0.000023 stat(".git", 0x7fff603c5a60) = -1 ENOENT (No such file or > directory) > 31817 165.109930 access(".git/objects", X_OK) = -1 ENOENT (No such file or > directory) > See the freeze for almost 3 minutes... > > I'm wondering... does git try to access files outside my home > directory? i.e. files I do not control??? As Anders said, since git 1.6.0, it makes sense to set GIT_CEILING_DIRECTORIES to prevent this for all git commands. But the case you mentioned, where git is run from the bash completion script, is a bit of a special case. There is no reason for 'git help -a' to ever look for a git repository. Gerrit, do you think this is worth fixing through pu? I would be glad to prepare an upload if you think so, but I would not be the one maintaining it. Jonathan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org