threads / discuss / 21946

git --version wrong

Subject: git --version wrong

## tl;dr

3 messages between Dec 13, 2009 and Dec 14, 2009.

replies: 2people: 2as markdown or json

oshybrid· Dec 13, 2009, 22:51 UTC · lore
After i Instal 1.6.5.5 my "git --version"  still shows 1.6.0.5
Snow Leopard 
 Model Name:	MacBook Pro
  Model Identifier:	MacBookPro1,1
  Processor Name:	Intel Core Duo
  Processor Speed:	2.16 GHz
  Number Of Processors:	1
  Total Number Of Cores:	2
  L2 Cache:	2 MB
  Memory:	2 GB
  Bus Speed:	667 MHz
  Boot ROM Version:	MBP11.0055.B08
  SMC Version (system):	1.2f10
  Serial Number (system):	W86162J5VWX
  Hardware UUID:	00000000-0000-1000-8000-0016CB94B85F
  Sudden Motion Sensor:
  State:	Enabled
-- 
View this message in context: http://old.nabble.com/git---version-wrong-tp26770625p26770625.html
Sent from the git mailing list archive at Nabble.com.
B Smith-Mannschott· Dec 14, 2009, 06:17 UTC · re: oshybrid · lore

Re: git --version wrong

On Sun, Dec 13, 2009 at 23:51, oshybrid <oshybrid@gmail.com> wrote:
>
> After i Instal 1.6.5.5 my "git --version"  still shows 1.6.0.5
>

How, exactly, did you install it? What's the output when you type "which git" at the command line?

// Ben
B Smith-Mannschott· Dec 14, 2009, 18:41 UTC · lore

Re: git --version wrong

Show 12 quoted lines
> On Sun, Dec 13, 2009 at 10:17 PM, B Smith-Mannschott <bsmith.occs@gmail.com>
> wrote:
>>
>> On Sun, Dec 13, 2009 at 23:51, oshybrid <oshybrid@gmail.com> wrote:
>> >
>> > After i Instal 1.6.5.5 my "git --version"  still shows 1.6.0.5
>> >
>>
>> How, exactly, did you install it?
>> What's the output when you type "which git" at the command line?
>>
>> // Ben
On Mon, Dec 14, 2009 at 17:52, Brad Hutchins <oshybrid@gmail.com> wrote:
> /opt/local/bin/git

Judging by the path, it looks like the git that is actually running on your machine was installed through macports. Is that accurate? The current version of git offered by macports, however, is 1.6.5.3 <http://trac.macports.org/browser/trunk/dports/devel/git-core/Portfile> which is neither the version you are expecting, nor the version you actually have installed.

Here's my guess, based on insufficient information:
(1) You have macports package manager installed.
(2) It's been a while since you've updated it, so...
(3) The git installed by macports is outdated (1.6.0.5)

(4) You tried to install git 1.6.5.5 via some other mechanism other than macports. Maybe one of the stand-alone git installers floating around. Maybe you built it from source. I can't tell, because you haven't told me.

(5) Where ever that install placed your new git, it wasn't in /opt/local/bin

(6) Your PATH environment variable either does not contain the directory where the newer git is installed or it contains it, but said directory is after /opt/local/bin in PATH. (type "echo $PATH" in the shell to see what's in PATH).

I'd look in /usr/local/bin and /usr/local/git/bin to see if you can't find the newer git there.

Failing that, please come back with an answer to the question "How, exactly, did you install it?" from my first reply and I'll see if I can help you further.

// Ben

← back to recent threads