Re: Question about bare repositories

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: Question about bare repositories

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:00

Andy Parkins [off-list ref] writes:
Why does a bare repository have/need a HEAD?
To mark which branch the repository owner considers the primary
branch of the repository.  I think "git pull $URL" (i.e. without
using shorthand arranged in the config nor $GIT_DIR/remotes/)
defaults to fetching and merging HEAD from there, for example (I
say "I think" because it's been a while I did so myself, and we
might have broken it during the 1.5.0 process, which had a lot
of work in that area).

Re: Question about bare repositories

From: Andy Parkins <hidden>
Date: 2016-06-15 22:43:00

On Friday 2007 March 16 10:05, Junio C Hamano wrote:
Andy Parkins [off-list ref] writes:
quoted
Why does a bare repository have/need a HEAD?
To mark which branch the repository owner considers the primary
branch of the repository.  I think "git pull $URL" (i.e. without
Interesting.   So it's got a much reduced importance and sounds like it is 
mainly as guidance for cloners, etc.
using shorthand arranged in the config nor $GIT_DIR/remotes/)
defaults to fetching and merging HEAD from there, for example (I
say "I think" because it's been a while I did so myself, and we
might have broken it during the 1.5.0 process, which had a lot
of work in that area).
Me too; I don't think I've ever used it, which is where my confusion came 
from.

Thanks for the help.


Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com

Re: Question about bare repositories

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:43:00

Hi,

On Fri, 16 Mar 2007, Andy Parkins wrote:
On Friday 2007 March 16 10:05, Junio C Hamano wrote:
quoted
Andy Parkins [off-list ref] writes:
quoted
Why does a bare repository have/need a HEAD?
To mark which branch the repository owner considers the primary
branch of the repository.  I think "git pull $URL" (i.e. without
Interesting.  So it's got a much reduced importance and sounds like it 
is mainly as guidance for cloners, etc.
It's as much a guidance for cloners, as it is for Git in non-bare repos to 
know which branch gets updated upon commit.

HEAD was never more than a pointer to one (the "current") branch.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help