{"thread":{"id":"29444","subject":"git version not changed after installing new version","startedAt":"2012-01-25T16:45:50Z","lastAt":"2012-01-26T17:52:47Z","messageCount":14,"participants":["freefly","Thomas Rast","Kirill Likhodedov","Carlos Martín Nieto","Holger Hellmuth"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"183081","messageId":"loom.20120125T173801-500@post.gmane.org","threadId":"29444","inReplyTo":null,"subject":"git version not changed after installing new version","fromName":"freefly","fromEmail":"free.fly@live.com","sentAt":"2012-01-25T16:45:50Z","receivedAt":"2012-01-25T16:45:50Z","isPatch":false,"sender":{"key":"free.fly@live.com","avatar":null},"body":"Hi all,\n    I am new to Mac OS X lion and I had a previous installation of XCODE 4.2\non my mac mini. It has a git version 1.7.5.4. I installed a new version 1.7.8.4.\nand updated the Path variables by running the script comes with the \npackage as well. but when I type \"git --version\" in the terminal \nI get 1.7.5.4. Can anyone tell me what is going wrong ?\n\nKind regards\n"},{"id":"183083","messageId":"52E83BE7-8D1C-4A9C-AA86-DBC58435C299@gmail.com","threadId":"29444","inReplyTo":"loom.20120125T173801-500@post.gmane.org","subject":"Re: git version not changed after installing new version","fromName":"Kirill Likhodedov","fromEmail":"klikh.list@gmail.com","sentAt":"2012-01-25T16:57:28Z","receivedAt":"2012-01-25T16:57:28Z","isPatch":false,"sender":{"key":"klikh.list@gmail.com","avatar":null},"body":"Most likely, you  didn't update the PATH well enough.\nCheck what is the output of 'which git' command. It will point to the xcode installation. So please double check the path.\n\n25.01.2012, в 20:45, freefly:\n\n> Hi all,\n>    I am new to Mac OS X lion and I had a previous installation of XCODE 4.2\n> on my mac mini. It has a git version 1.7.5.4. I installed a new version 1.7.8.4.\n> and updated the Path variables by running the script comes with the \n> package as well. but when I type \"git --version\" in the terminal \n> I get 1.7.5.4. Can anyone tell me what is going wrong ?\n> \n> Kind regards\n> \n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"183082","messageId":"8739b3k949.fsf@thomas.inf.ethz.ch","threadId":"29444","inReplyTo":"loom.20120125T173801-500@post.gmane.org","subject":"Re: git version not changed after installing new version","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2012-01-25T17:03:18Z","receivedAt":"2012-01-25T17:03:18Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"freefly <free.fly@live.com> writes:\n\n> Hi all,\n>     I am new to Mac OS X lion and I had a previous installation of XCODE 4.2\n> on my mac mini. It has a git version 1.7.5.4. I installed a new version 1.7.8.4.\n> and updated the Path variables by running the script comes with the \n> package as well. but when I type \"git --version\" in the terminal \n> I get 1.7.5.4. Can anyone tell me what is going wrong ?\n\nEnter 'which git' in a terminal.  The 'which' utility looks up which\nexecutable from $PATH will be run if you use 'git' (in this case) as a\ncommand word, i.e., without specifying its path.\n\nThis should point to your newly installed git.  It probably doesn't, and\nyou can compare it and your $PATH (try: 'echo \"$PATH\"' in a terminal) to\nsee why.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"},{"id":"183084","messageId":"loom.20120125T181639-351@post.gmane.org","threadId":"29444","inReplyTo":"loom.20120125T173801-500@post.gmane.org","subject":"Re: git version not changed after installing new version","fromName":"freefly","fromEmail":"free.fly@live.com","sentAt":"2012-01-25T17:19:26Z","receivedAt":"2012-01-25T17:19:26Z","isPatch":false,"sender":{"key":"free.fly@live.com","avatar":null},"body":"Thanks both of you for your replies, I have checked but, \nit still points to the old \"/usr/bin/git\" not the \n\"/usr/local/git/bin\" :(\n\nwhen I run the update path script I get this output.\n\n\nNo change to PATH in ~/.MacOSX/environment.plist\n~ /Volumes/Git 1.7.8.3 Snow Leopard Intel Universal\n/Volumes/Git 1.7.8.3 Snow Leopard Intel Universal\n"},{"id":"183087","messageId":"1327517841.31804.75.camel@centaur.lab.cmartin.tk","threadId":"29444","inReplyTo":"loom.20120125T181639-351@post.gmane.org","subject":"Re: git version not changed after installing new version","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2012-01-25T18:57:21Z","receivedAt":"2012-01-25T18:57:21Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Wed, 2012-01-25 at 17:19 +0000, freefly wrote:\n> Thanks both of you for your replies, I have checked but, \n> it still points to the old \"/usr/bin/git\" not the \n> \"/usr/local/git/bin\" :(\n\nWhat do `which git` and `type git` say? Bash remembers where it ran a\ncommand so if you install a binary to a new location, it might not find\nit straight away.\n\n> \n> when I run the update path script I get this output.\n> \n> \n> No change to PATH in ~/.MacOSX/environment.plist\n> ~ /Volumes/Git 1.7.8.3 Snow Leopard Intel Universal\n> /Volumes/Git 1.7.8.3 Snow Leopard Intel Universal\n\nSo the script detected that no change was needed presumably. What's your\n$PATH and is /usr/local/bin/ before /usr/bin/?\n\n   cmn\n"},{"id":"183091","messageId":"loom.20120125T202642-92@post.gmane.org","threadId":"29444","inReplyTo":"1327517841.31804.75.camel@centaur.lab.cmartin.tk","subject":"Re: git version not changed after installing new version","fromName":"freefly","fromEmail":"free.fly@live.com","sentAt":"2012-01-25T19:32:10Z","receivedAt":"2012-01-25T19:32:10Z","isPatch":false,"sender":{"key":"free.fly@live.com","avatar":null},"body":"\n\n> What do `which git` and `type git` say? Bash remembers where it ran a\n> command so if you install a binary to a new location, it might not find\n> it straight away.\n\nwhich git => /usr/bin/git\n\ntype git => git is hashed (/usr/bin/git)\n\n> So the script detected that no change was needed presumably. What's your\n> $PATH and is /usr/local/bin/ before /usr/bin/?\n \necho $PATH => /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:\n                         /usr/X11/bin:/usr/local/git/bin:/opt/local/bin\n\nfrom the above output it is not before /usr/bin :(\n"},{"id":"183092","messageId":"1327521489.31804.85.camel@centaur.lab.cmartin.tk","threadId":"29444","inReplyTo":"loom.20120125T202642-92@post.gmane.org","subject":"Re: git version not changed after installing new version","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2012-01-25T19:58:09Z","receivedAt":"2012-01-25T19:58:09Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"\nPlease don't cull the CC list. It's customary in the git ML to send a\ncopy of the message to each participant.\n\nOn Wed, 2012-01-25 at 19:32 +0000, freefly wrote:\n> \n> > What do `which git` and `type git` say? Bash remembers where it ran a\n> > command so if you install a binary to a new location, it might not find\n> > it straight away.\n> \n> which git => /usr/bin/git\n> \n> type git => git is hashed (/usr/bin/git)\n> \n> > So the script detected that no change was needed presumably. What's your\n> > $PATH and is /usr/local/bin/ before /usr/bin/?\n>  \n> echo $PATH => /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:\n>                          /usr/X11/bin:/usr/local/git/bin:/opt/local/bin\n> \n> from the above output it is not before /usr/bin :(\n\nThere you go then. That should get set in ~/.bashrc so edit that file to\nchange the order.\n\n   cmn\n\n"},{"id":"183093","messageId":"loom.20120125T211638-609@post.gmane.org","threadId":"29444","inReplyTo":"1327521489.31804.85.camel@centaur.lab.cmartin.tk","subject":"Re: git version not changed after installing new version","fromName":"freefly","fromEmail":"free.fly@live.com","sentAt":"2012-01-25T20:20:35Z","receivedAt":"2012-01-25T20:20:35Z","isPatch":false,"sender":{"key":"free.fly@live.com","avatar":null},"body":"> Please don't cull the CC list. It's customary in the git ML to send a\n> copy of the message to each participant.\n> \n\n> There you go then. That should get set in ~/.bashrc so edit that file to\n> change the order.\n> \n>    cmn\n\nI didn't the rules about ML and culling some of them \nhave guidelines to reduce the noise. \n\nSo you want me to edit the ~/.bashrc \nand put change the order of those paths ?\n"},{"id":"183094","messageId":"loom.20120125T212203-813@post.gmane.org","threadId":"29444","inReplyTo":"1327521489.31804.85.camel@centaur.lab.cmartin.tk","subject":"Re: git version not changed after installing new version","fromName":"freefly","fromEmail":"free.fly@live.com","sentAt":"2012-01-25T20:23:54Z","receivedAt":"2012-01-25T20:23:54Z","isPatch":false,"sender":{"key":"free.fly@live.com","avatar":null},"body":"\nSorry about the last post, I had to prune some things from the message,\nbecause when I was trying to post it just keep telling me that \nI have more quoted text than what I have written :(\n"},{"id":"183099","messageId":"1327530594.31804.87.camel@centaur.lab.cmartin.tk","threadId":"29444","inReplyTo":"loom.20120125T211638-609@post.gmane.org","subject":"Re: git version not changed after installing new version","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2012-01-25T22:29:54Z","receivedAt":"2012-01-25T22:29:54Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Wed, 2012-01-25 at 20:20 +0000, freefly wrote:\n> > Please don't cull the CC list. It's customary in the git ML to send a\n> > copy of the message to each participant.\n> > \n> \n> > There you go then. That should get set in ~/.bashrc so edit that file to\n> > change the order.\n> > \n> >    cmn\n> \n> I didn't the rules about ML and culling some of them \n> have guidelines to reduce the noise. \n> So you want me to edit the ~/.bashrc \n> and put change the order of those paths ?\n\nWith the places you've installed git in, that's what you need to do. You\nneed to tell your shell to look at /usr/local/bin before /usr/bin,\notherwise it won't use your locally-installed git.\n\n   cmn\n"},{"id":"183118","messageId":"loom.20120126T144828-400@post.gmane.org","threadId":"29444","inReplyTo":"1327530594.31804.87.camel@centaur.lab.cmartin.tk","subject":"Re: git version not changed after installing new version","fromName":"freefly","fromEmail":"free.fly@live.com","sentAt":"2012-01-26T14:33:31Z","receivedAt":"2012-01-26T14:33:31Z","isPatch":false,"sender":{"key":"free.fly@live.com","avatar":null},"body":" \nThanks ... \nI really appreciate your time.  \n"},{"id":"183119","messageId":"loom.20120126T161101-463@post.gmane.org","threadId":"29444","inReplyTo":"loom.20120126T144828-400@post.gmane.org","subject":"Re: git version not changed after installing new version","fromName":"freefly","fromEmail":"free.fly@live.com","sentAt":"2012-01-26T15:13:34Z","receivedAt":"2012-01-26T15:13:34Z","isPatch":false,"sender":{"key":"free.fly@live.com","avatar":null},"body":"that doesn't seem to change the path :(\n\nwhich git => /usr/bin/git\n\nversion still points to the old one  :(\n\nThis is my current path that I changed, as you told me to do... \n\n/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/git/bin\n"},{"id":"183122","messageId":"4F2184DC.6070804@ira.uka.de","threadId":"29444","inReplyTo":"loom.20120126T161101-463@post.gmane.org","subject":"Re: git version not changed after installing new version","fromName":"Holger Hellmuth","fromEmail":"hellmuth@ira.uka.de","sentAt":"2012-01-26T16:52:44Z","receivedAt":"2012-01-26T16:52:44Z","isPatch":false,"sender":{"key":"hellmuth@ira.uka.de","avatar":null},"body":"On 26.01.2012 16:13, freefly wrote:\n> that doesn't seem to change the path :(\n>\n> which git =>  /usr/bin/git\n>\n> version still points to the old one  :(\n>\n> This is my current path that I changed, as you told me to do...\n>\n> /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/git/bin\n\nPut /usr/local/git/bin in front (it is easy to overlook the \"git/\" in \nthere as software often uses /usr/local/bin)\n"},{"id":"183126","messageId":"loom.20120126T185158-378@post.gmane.org","threadId":"29444","inReplyTo":"4F2184DC.6070804@ira.uka.de","subject":"Re: git version not changed after installing new version","fromName":"freefly","fromEmail":"free.fly@live.com","sentAt":"2012-01-26T17:52:47Z","receivedAt":"2012-01-26T17:52:47Z","isPatch":false,"sender":{"key":"free.fly@live.com","avatar":null},"body":"> Put /usr/local/git/bin in front (it is easy to overlook the \"git/\" in \n> there as software often uses /usr/local/bin)\n\nThat worked. Thank you very much.\n"}]}