Page MenuHomePhabricator

Wrong path to git?
Closed, DeclinedPublic

Description

Author: dasch

Description:
following Bug 38783

which git -> /usr/local/bin/git
so all ubuntu users have to change there localsetting to make this work!


Version: 1.21.x
Severity: normal

Details

Reference
bz47261

Related Objects

StatusSubtypeAssignedTask
DeclinedNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:39 AM
bzimport set Reference to bz47261.
bzimport added a subscriber: Unknown Object (MLST).

The path is determined during installation !

dasch wrote:

But why is the default setting /usr/bin/git
is there any evidence that this is more common the /usr/local/bin/git

How have you installed git ?

If it is installed by the linux distribution it would usually ends up in /usr/bin/git

When you compile from source (with ./configure ), the default prefix is /usr/local to avoid overlapping with the distribution version.

Having in your bashrc something like:

export PATH="/usr/local/bin:$PATH"

Would load the locally installed binary before looking at the distribution ones.