git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: hitting home directory's parent

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Aug 22, 2009, 04:10 UTC
Message-ID
<fcaeb9bf0908212110o5ed1233ek11183fa37b474a06@mail.gmail.com>
In-Reply-To
<20090821200503.GA19660@panix.com>

On Sat, Aug 22, 2009 at 3:05 AM, Daniel Convissor<danielc@analysisandsolutions.com> wrote:

Show 19 quoted lines
> Hi:
>
> I just installed git in my Cygwin installation for the first time.  The
> git version is 1.6.1.2, which is the latest version they have.  When I
> enter one of the following commands:
>    git --help
>    git config --global user.name "Daniel Convissor"
>
> I get this error:
>    fatal: Cannot change to /home/danielc/..: Permission denied
>
> Though "git --version" executes fine.
>
> I've been using Cygwin for many years and no other program has ever
> produced this issue for me.  For example, svn --help, ls --help, etc work
> just fine.
>
> Why is git venturing into to the home directory's parent directory?  Is
> this a bug?  If not, is this really necessary?

I guess it tried to find .git directory upward. I think you can set GIT_CEILING_DIRECTORIES to make it stop at /home/danielc. Excerpt from git.txt

-'GIT_CEILING_DIRECTORIES'::
        This should be a colon-separated list of absolute paths.
        If set, it is a list of directories that git should not chdir
        up into while looking for a repository directory.
        It will not exclude the current working directory or
        a GIT_DIR set on the command line or in the environment.
        (Useful for excluding slow-loading network directories.)
-
Duy
Previous: Daniel ConvissorNext: Daniel Convissor
Message 2 of 11 in “hitting home directory's parent”
  1. Daniel ConvissorAug 21, 2009
  2. Nguyen Thai Ngoc DuyAug 22, 2009
  3. Daniel ConvissorAug 22, 2009
  4. Nguyen Thai Ngoc DuyAug 22, 2009
  5. Nguyen Thai Ngoc DuyAug 22, 2009
  6. Jeff KingAug 22, 2009
  7. Nguyen Thai Ngoc DuyAug 23, 2009
  8. Jeff KingAug 25, 2009
  9. Daniel ConvissorAug 23, 2009
  10. Jeff KingAug 25, 2009
  11. Daniel ConvissorAug 23, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.