git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git version not changed after installing new version
@ 2012-01-25 16:45 freefly
  2012-01-25 16:57 ` Kirill Likhodedov
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: freefly @ 2012-01-25 16:45 UTC (permalink / raw
  To: git

Hi all,
    I am new to Mac OS X lion and I had a previous installation of XCODE 4.2
on my mac mini. It has a git version 1.7.5.4. I installed a new version 1.7.8.4.
and updated the Path variables by running the script comes with the 
package as well. but when I type "git --version" in the terminal 
I get 1.7.5.4. Can anyone tell me what is going wrong ?

Kind regards

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 16:45 git version not changed after installing new version freefly
@ 2012-01-25 16:57 ` Kirill Likhodedov
  2012-01-25 17:03 ` Thomas Rast
  2012-01-25 17:19 ` freefly
  2 siblings, 0 replies; 14+ messages in thread
From: Kirill Likhodedov @ 2012-01-25 16:57 UTC (permalink / raw
  To: freefly; +Cc: git

Most likely, you  didn't update the PATH well enough.
Check what is the output of 'which git' command. It will point to the xcode installation. So please double check the path.

25.01.2012, в 20:45, freefly:

> Hi all,
>    I am new to Mac OS X lion and I had a previous installation of XCODE 4.2
> on my mac mini. It has a git version 1.7.5.4. I installed a new version 1.7.8.4.
> and updated the Path variables by running the script comes with the 
> package as well. but when I type "git --version" in the terminal 
> I get 1.7.5.4. Can anyone tell me what is going wrong ?
> 
> Kind regards
> 
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 16:45 git version not changed after installing new version freefly
  2012-01-25 16:57 ` Kirill Likhodedov
@ 2012-01-25 17:03 ` Thomas Rast
  2012-01-25 17:19 ` freefly
  2 siblings, 0 replies; 14+ messages in thread
From: Thomas Rast @ 2012-01-25 17:03 UTC (permalink / raw
  To: freefly; +Cc: git

freefly <free.fly@live.com> writes:

> Hi all,
>     I am new to Mac OS X lion and I had a previous installation of XCODE 4.2
> on my mac mini. It has a git version 1.7.5.4. I installed a new version 1.7.8.4.
> and updated the Path variables by running the script comes with the 
> package as well. but when I type "git --version" in the terminal 
> I get 1.7.5.4. Can anyone tell me what is going wrong ?

Enter 'which git' in a terminal.  The 'which' utility looks up which
executable from $PATH will be run if you use 'git' (in this case) as a
command word, i.e., without specifying its path.

This should point to your newly installed git.  It probably doesn't, and
you can compare it and your $PATH (try: 'echo "$PATH"' in a terminal) to
see why.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 16:45 git version not changed after installing new version freefly
  2012-01-25 16:57 ` Kirill Likhodedov
  2012-01-25 17:03 ` Thomas Rast
@ 2012-01-25 17:19 ` freefly
  2012-01-25 18:57   ` Carlos Martín Nieto
  2 siblings, 1 reply; 14+ messages in thread
From: freefly @ 2012-01-25 17:19 UTC (permalink / raw
  To: git

Thanks both of you for your replies, I have checked but, 
it still points to the old "/usr/bin/git" not the 
"/usr/local/git/bin" :(

when I run the update path script I get this output.


No change to PATH in ~/.MacOSX/environment.plist
~ /Volumes/Git 1.7.8.3 Snow Leopard Intel Universal
/Volumes/Git 1.7.8.3 Snow Leopard Intel Universal

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 17:19 ` freefly
@ 2012-01-25 18:57   ` Carlos Martín Nieto
  2012-01-25 19:32     ` freefly
  0 siblings, 1 reply; 14+ messages in thread
From: Carlos Martín Nieto @ 2012-01-25 18:57 UTC (permalink / raw
  To: freefly; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 722 bytes --]

On Wed, 2012-01-25 at 17:19 +0000, freefly wrote:
> Thanks both of you for your replies, I have checked but, 
> it still points to the old "/usr/bin/git" not the 
> "/usr/local/git/bin" :(

What do `which git` and `type git` say? Bash remembers where it ran a
command so if you install a binary to a new location, it might not find
it straight away.

> 
> when I run the update path script I get this output.
> 
> 
> No change to PATH in ~/.MacOSX/environment.plist
> ~ /Volumes/Git 1.7.8.3 Snow Leopard Intel Universal
> /Volumes/Git 1.7.8.3 Snow Leopard Intel Universal

So the script detected that no change was needed presumably. What's your
$PATH and is /usr/local/bin/ before /usr/bin/?

   cmn

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 18:57   ` Carlos Martín Nieto
@ 2012-01-25 19:32     ` freefly
  2012-01-25 19:58       ` Carlos Martín Nieto
  0 siblings, 1 reply; 14+ messages in thread
From: freefly @ 2012-01-25 19:32 UTC (permalink / raw
  To: git



> What do `which git` and `type git` say? Bash remembers where it ran a
> command so if you install a binary to a new location, it might not find
> it straight away.

which git => /usr/bin/git

type git => git is hashed (/usr/bin/git)

> So the script detected that no change was needed presumably. What's your
> $PATH and is /usr/local/bin/ before /usr/bin/?
 
echo $PATH => /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:
                         /usr/X11/bin:/usr/local/git/bin:/opt/local/bin

from the above output it is not before /usr/bin :(

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 19:32     ` freefly
@ 2012-01-25 19:58       ` Carlos Martín Nieto
  2012-01-25 20:20         ` freefly
  2012-01-25 20:23         ` freefly
  0 siblings, 2 replies; 14+ messages in thread
From: Carlos Martín Nieto @ 2012-01-25 19:58 UTC (permalink / raw
  To: freefly; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 870 bytes --]


Please don't cull the CC list. It's customary in the git ML to send a
copy of the message to each participant.

On Wed, 2012-01-25 at 19:32 +0000, freefly wrote:
> 
> > What do `which git` and `type git` say? Bash remembers where it ran a
> > command so if you install a binary to a new location, it might not find
> > it straight away.
> 
> which git => /usr/bin/git
> 
> type git => git is hashed (/usr/bin/git)
> 
> > So the script detected that no change was needed presumably. What's your
> > $PATH and is /usr/local/bin/ before /usr/bin/?
>  
> echo $PATH => /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:
>                          /usr/X11/bin:/usr/local/git/bin:/opt/local/bin
> 
> from the above output it is not before /usr/bin :(

There you go then. That should get set in ~/.bashrc so edit that file to
change the order.

   cmn


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 19:58       ` Carlos Martín Nieto
@ 2012-01-25 20:20         ` freefly
  2012-01-25 22:29           ` Carlos Martín Nieto
  2012-01-25 20:23         ` freefly
  1 sibling, 1 reply; 14+ messages in thread
From: freefly @ 2012-01-25 20:20 UTC (permalink / raw
  To: git

> Please don't cull the CC list. It's customary in the git ML to send a
> copy of the message to each participant.
> 

> There you go then. That should get set in ~/.bashrc so edit that file to
> change the order.
> 
>    cmn

I didn't the rules about ML and culling some of them 
have guidelines to reduce the noise. 

So you want me to edit the ~/.bashrc 
and put change the order of those paths ?

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 19:58       ` Carlos Martín Nieto
  2012-01-25 20:20         ` freefly
@ 2012-01-25 20:23         ` freefly
  1 sibling, 0 replies; 14+ messages in thread
From: freefly @ 2012-01-25 20:23 UTC (permalink / raw
  To: git


Sorry about the last post, I had to prune some things from the message,
because when I was trying to post it just keep telling me that 
I have more quoted text than what I have written :(

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 20:20         ` freefly
@ 2012-01-25 22:29           ` Carlos Martín Nieto
  2012-01-26 14:33             ` freefly
  0 siblings, 1 reply; 14+ messages in thread
From: Carlos Martín Nieto @ 2012-01-25 22:29 UTC (permalink / raw
  To: freefly; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

On Wed, 2012-01-25 at 20:20 +0000, freefly wrote:
> > Please don't cull the CC list. It's customary in the git ML to send a
> > copy of the message to each participant.
> > 
> 
> > There you go then. That should get set in ~/.bashrc so edit that file to
> > change the order.
> > 
> >    cmn
> 
> I didn't the rules about ML and culling some of them 
> have guidelines to reduce the noise. 
> So you want me to edit the ~/.bashrc 
> and put change the order of those paths ?

With the places you've installed git in, that's what you need to do. You
need to tell your shell to look at /usr/local/bin before /usr/bin,
otherwise it won't use your locally-installed git.

   cmn

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-25 22:29           ` Carlos Martín Nieto
@ 2012-01-26 14:33             ` freefly
  2012-01-26 15:13               ` freefly
  0 siblings, 1 reply; 14+ messages in thread
From: freefly @ 2012-01-26 14:33 UTC (permalink / raw
  To: git

 
Thanks ... 
I really appreciate your time.  

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-26 14:33             ` freefly
@ 2012-01-26 15:13               ` freefly
  2012-01-26 16:52                 ` Holger Hellmuth
  0 siblings, 1 reply; 14+ messages in thread
From: freefly @ 2012-01-26 15:13 UTC (permalink / raw
  To: git

that doesn't seem to change the path :(

which git => /usr/bin/git

version still points to the old one  :(

This is my current path that I changed, as you told me to do... 

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/git/bin

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-26 15:13               ` freefly
@ 2012-01-26 16:52                 ` Holger Hellmuth
  2012-01-26 17:52                   ` freefly
  0 siblings, 1 reply; 14+ messages in thread
From: Holger Hellmuth @ 2012-01-26 16:52 UTC (permalink / raw
  To: freefly; +Cc: git

On 26.01.2012 16:13, freefly wrote:
> that doesn't seem to change the path :(
>
> which git =>  /usr/bin/git
>
> version still points to the old one  :(
>
> This is my current path that I changed, as you told me to do...
>
> /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/git/bin

Put /usr/local/git/bin in front (it is easy to overlook the "git/" in 
there as software often uses /usr/local/bin)

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: git version not changed after installing new version
  2012-01-26 16:52                 ` Holger Hellmuth
@ 2012-01-26 17:52                   ` freefly
  0 siblings, 0 replies; 14+ messages in thread
From: freefly @ 2012-01-26 17:52 UTC (permalink / raw
  To: git

> Put /usr/local/git/bin in front (it is easy to overlook the "git/" in 
> there as software often uses /usr/local/bin)

That worked. Thank you very much.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-01-26 17:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-25 16:45 git version not changed after installing new version freefly
2012-01-25 16:57 ` Kirill Likhodedov
2012-01-25 17:03 ` Thomas Rast
2012-01-25 17:19 ` freefly
2012-01-25 18:57   ` Carlos Martín Nieto
2012-01-25 19:32     ` freefly
2012-01-25 19:58       ` Carlos Martín Nieto
2012-01-25 20:20         ` freefly
2012-01-25 22:29           ` Carlos Martín Nieto
2012-01-26 14:33             ` freefly
2012-01-26 15:13               ` freefly
2012-01-26 16:52                 ` Holger Hellmuth
2012-01-26 17:52                   ` freefly
2012-01-25 20:23         ` freefly

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).