{"thread":{"id":"24144","subject":"[BUG] Using git-completion with automounted home directories causes bogus NFS mount requests","startedAt":"2010-06-17T19:32:09Z","lastAt":"2010-06-17T20:02:54Z","messageCount":2,"participants":["Cesar Crusius","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"143882","messageId":"B0356A858DE69744B8977A67332BFB2C1FE9CDAD@dc1.mv.cariden.com","threadId":"24144","inReplyTo":null,"subject":"[BUG] Using git-completion with automounted home directories causes bogus NFS mount requests","fromName":"Cesar Crusius","fromEmail":"cesar@cariden.com","sentAt":"2010-06-17T19:32:09Z","receivedAt":"2010-06-17T19:32:09Z","isPatch":false,"sender":{"key":"cesar@cariden.com","avatar":null},"body":"Hi all,\n\nI have tried this with various versions of .git-completion, including the most recent one as of today, and whenever I have __git_ps1 in my bash prompt, I get messages like this:\n\nJun 17 12:05:14 sunray automountd[471]: [ID 834250 daemon.error] Mount of <server>:/export/home/.git on /home/.git: No such file or directory\nJun 17 12:05:14 sunray automountd[471]: [ID 834250 daemon.error] Mount of <server>:/export/home/objects on /home/objects: No such file or directory\n\non /var/adm/messages every time a prompt is printed from the home directory (~). When I am in any subdirectory of ~ this does not happen.\n\nThis is probably a result of git/git-completion trying to access the directories above, and automount trying to get them from the server (we're in an NFS home environment, with wildcard automounts in auto_home).\n\n- Cesar"},{"id":"143883","messageId":"201006172202.54879.trast@student.ethz.ch","threadId":"24144","inReplyTo":"B0356A858DE69744B8977A67332BFB2C1FE9CDAD@dc1.mv.cariden.com","subject":"Re: [BUG] Using git-completion with automounted home directories causes bogus NFS mount requests","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2010-06-17T20:02:54Z","receivedAt":"2010-06-17T20:02:54Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Cesar Crusius wrote:\n> Hi all,\n> \n> I have tried this with various versions of .git-completion,\n> including the most recent one as of today, and whenever I have\n> __git_ps1 in my bash prompt, I get messages like this:\n> \n> Jun 17 12:05:14 sunray automountd[471]: [ID 834250 daemon.error] Mount of <server>:/export/home/.git on /home/.git: No such file or directory\n[...]\n> This is probably a result of git/git-completion trying to access the\n> directories above, and automount trying to get them from the server\n> (we're in an NFS home environment, with wildcard automounts in\n> auto_home).\n\nIt's not a bug.  Git repositories have only one .git metadata\ndirectory at the root of the repo.  How could git possibly detect\nwhere the repository is, if not by scanning each directory up to the\nroot for a .git entry?\n\nFor a workaround, set GIT_CEILING_DIRECTORIES (available since 1.6.0),\nsee git(1).  The next released version will most likely default to not\nsearching across mount points thanks to commit 8030e44 (Add support\nfor GIT_ONE_FILESYSTEM, 2010-03-17).\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"}]}