git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "David Rodríguez" <deivid.rodriguez@gmail.com>
To: git@vger.kernel.org
Subject: git's directory is _prepended_ to PATH when called with an absolute path
Date: Tue, 21 Apr 2015 18:37:29 -0300	[thread overview]
Message-ID: <5536C319.4000402@gmail.com> (raw)

For example, if I run git using:

$ /usr/bin/git

then /usr/bin is prepended to the path. Is this intentional? If it is, why?

This causes issues with Ruby git hooks, because Ruby version managers 
rely on custom settings in PATH to select the Ruby executable, and 
there's usually a system Ruby living in /usr/bin. See 
https://github.com/github/hub/issues/855 for an example.

Thanks a lot,

David Rodríguez.

             reply	other threads:[~2015-04-21 21:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21 21:37 David Rodríguez [this message]
2015-04-21 21:48 ` git's directory is _prepended_ to PATH when called with an absolute path Junio C Hamano
2015-04-21 21:59   ` David Rodríguez
2015-04-21 23:17     ` David Rodríguez
2015-04-22  5:47 ` Andreas Krey
2015-04-22 11:36   ` David Rodríguez
2015-04-22 15:31     ` Andreas Krey
2015-04-22 17:02       ` brian m. carlson
2015-04-22 17:47         ` David Rodríguez

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=5536C319.4000402@gmail.com \
    --to=deivid.rodriguez@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).