From: Sebastian Schuberth <sschuberth@gmail.com>
To: git@vger.kernel.org
Subject: git alias fails if non-accessible directory is in PATH
Date: Sun, 08 May 2011 11:53:24 +0200 [thread overview]
Message-ID: <iq5p6k$73f$1@dough.gmane.org> (raw)
Hi,
I just came across the issue at [1] in my Gentoo installation. By default, it is
drwxr-x--- 2 root games 4096 Mar 12 02:22 /usr/games/bin
Moreover, by default users are not in the "games" group and /usr/games/bin is in PATH. For some reason, this makes git fail to run any alias like this
# git config alias.br branch
$ git br
fatal: cannot exec 'git-br': Permission denied
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.
The problem is also described at [2] for Mac OS. Reading those posts, this seems to be a regression when coming from 1.6.3 to 1.7.0.
[1] http://www.fractionsofapenny.com/from-the-trenches/gentoo-troubles-with-git-alias
[2] http://stackoverflow.com/questions/4019501/git-alias-problem
--
Sebastian Schuberth
next reply other threads:[~2011-05-08 9:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-08 9:53 Sebastian Schuberth [this message]
2011-05-08 16:15 ` git alias fails if non-accessible directory is in PATH Michael Schubert
2011-05-08 16:50 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='iq5p6k$73f$1@dough.gmane.org' \
--to=sschuberth@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).