Re: git alias fails if non-accessible directory is in PATH
- From
- Michael 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.