system git vs MacPorts git for fetching source
Ryan Schmidt
ryandesign at macports.org
Sun Oct 16 09:08:32 PDT 2011
On Oct 16, 2011, at 10:40, Jason Swails wrote:
> On Sun, Oct 16, 2011 at 11:18 AM, Adam Mercer wrote:
>> Can't the MacPorts git be used in preference to the one supplied by Xcode?
>
> Can you simply rearrange PATH (so that `which git` returns /opt/local/bin/git rather than /usr/bin/git if it doesn't already), or is /usr/bin/git hard-coded into port somewhere? Also, since when has Apple started supplying git with Xcode? Lion?
MacPorts finds git and other utilities at configure time and hardcodes them into itself.
I don't have a /usr/bin/git on my Snow Leopard system with Xcode 3.2.6 so I'd believe that Apple started shipping it in Lion. So on Lion, MacPorts will use /usr/bin/git (even if /opt/local/bin/git exists), and on Snow Leopard and earlier, MacPorts will use any git binary that exists in the binpath, installing the git port if necessary.
More information about the macports-users
mailing list