Re: Stop prepending /usr/bin to hooks PATH, or document it very clearly

2014-10-18 Thread Andreas Krey
On Fri, 17 Oct 2014 13:25:42 +, Ciro Santilli wrote: ... The problem is that the `/usr/bin` breaks interpreter version manager systems like RVM, rbenv, virtualenv, etc. since people will write hooks like: #!/usr/bin/env ruby and the `/usr/bin` ruby will get run instead of the

Re: Stop prepending /usr/bin to hooks PATH, or document it very clearly

2014-10-18 Thread Ciro Santilli
On Sat, Oct 18, 2014 at 4:49 PM, Andreas Krey a.k...@gmx.de wrote: On Fri, 17 Oct 2014 13:25:42 +, Ciro Santilli wrote: ... The problem is that the `/usr/bin` breaks interpreter version manager systems like RVM, rbenv, virtualenv, etc. since people will write hooks like:

Stop prepending /usr/bin to hooks PATH, or document it very clearly

2014-10-17 Thread Ciro Santilli
On hooks Git automatically prepends to the `PATH` via the `setup_path` function: - `git --exec-path` (`/usr/lib/git-core`) - the directory of `$0` (`/usr/bin`) if you call it with the full path The problem is that the `/usr/bin` breaks interpreter version manager systems like RVM, rbenv,