Re: kernel.org git tree corrupt?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steve French <smfrench@...>
Cc: <git@...>, lkml <linux-kernel@...>
Date: Monday, March 3, 2008 - 12:21 pm

On Sun, 2 Mar 2008, Steve French wrote:

Ahh, yeah, my bad. The origin/HEAD thing will be created if you use either 
clone or "git remote add -m master" to create the remote. But when I asked 
you to do it by just editing the config file, you now have to create that 
HEAD pointer manually too.

You can do

	git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/master

to create the thing (it just creates a symbolic ref from the origin/HEAD 
remote ref to the origin/master one, so now git will know that when you 
talk about 'origin', it is supposed to just use the master branch of 
that remote).


Well, origin/master should have worked, but the fact that plain "origin" 
didn't work is due to exactly the lack of HEAD file for that remote branch 
(for your kernel tree, there's only one remote branch, so it may be 
"obvious" that origin must be talking about the master branch, but if 
there are multiple branches at the origin it's not obvious *which* branch 
should be considered the default one, which is why we use HEAD)


Well, if "origin/master" works in that situation, then "origin/master" 
should have worked in "git log" too, so maybe you mistyped?

Anyway, with the HEAD link added for the remote 'origin', you should be 
able to use plain 'origin' like you're used to.

			Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kernel.org git tree corrupt?, Steve French, (Sun Mar 2, 11:49 am)
Re: kernel.org git tree corrupt?, Linus Torvalds, (Sun Mar 2, 5:16 pm)
Re: kernel.org git tree corrupt?, Steve French, (Sun Mar 2, 11:43 pm)
Re: kernel.org git tree corrupt?, Linus Torvalds, (Mon Mar 3, 12:21 pm)
Re: kernel.org git tree corrupt?, Steve French, (Tue Mar 4, 12:42 am)
Re: kernel.org git tree corrupt?, Martin Langhoff, (Sun Mar 2, 5:40 pm)
Re: kernel.org git tree corrupt?, Steve French, (Sun Mar 2, 6:02 pm)