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

Re: git alias fails if non-accessible directory is in PATH

From
MSMichael Schubert <mschub@elegosoft.com>
Date
May 8, 2011, 16:15 UTC
Message-ID
<4DC6C19D.4060704@elegosoft.com>
In-Reply-To
<iq5p6k$73f$1@dough.gmane.org>
> Is this by design, or a bug? I currently do not see a reason for git stop executing an alias just because it cannot access a directory in PATH. Strangely, I also haven't found any discussion about this on the mailing list yet.

If you look at start_command(), `git br` ends up as execvp call returning EACCESS in the given case whereas only ENOENT was "expected". This happens before git tries to resolve the alias.

Could it be a legit assumption that PATH holds only accessible paths? (POSIX?) Otherwise it's a bug.

Previous: Sebastian SchuberthNext: Junio C Hamano
Message 2 of 3 in “git alias fails if non-accessible directory is in PATH”
  1. Sebastian SchuberthMay 8, 2011
  2. Michael SchubertMay 8, 2011
  3. Junio C HamanoMay 8, 2011

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.