git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Problems setting up bare repository (git 1.5.3.3)

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 2, 2007, 17:45 UTC
Message-ID
<Pine.LNX.4.64.0710021841300.28395@racer.site>
In-Reply-To
<87641psey8.wl%cworth@cworth.org>
Hi,
On Tue, 2 Oct 2007, Carl Worth wrote:
Show 14 quoted lines
> On Tue, 2 Oct 2007 10:46:56 +0100 (BST), Johannes Schindelin wrote:
> > On Mon, 1 Oct 2007, Carl Worth wrote:
> > > And why is that?
> >
> > Well, if the OP had used "git push <bla> master" instead of "... 
> > master:master", it would have worked.  I am unaware of any tutorial 
> > that suggests the latter, only of tutorials that suggest the former.
> 
> OK. I was wrong. Somehow I got stuck thinking that "git push <bla> 
> master" wouldn't create a new remote master branch if it didn't 
> previously exist. (It's bizarre that I forgot since I've used that for a 
> long time).
> 
> Sorry about the noise.

Nothing to be sorry about. It got me thinking. People propose that "git push <nick> master:blub" should create the branch "refs/heads/blub" on the remote side.

My initial reaction was "then you have to be precise, because we do not know if you want to push it as a branch, or as a lightweight tag".

But then I stepped back a little: What is most likely meant when you say "master:blub" and there is no tag/branch of name "blub" on the remote side? Exactly, you want a branch to be created.

_Except_ if you had a typo, such as "git push ko master:po" where you want to be warned that that ref is not present on the remote side.

So I am less opposed to making "master:blub" automatically create a branch "blub" if it does not exist yet. But opposed nevertheless.

Ciao, Dscho

Previous: Carl WorthNext: Junio C Hamano
Message 13 of 18 in “Problems setting up bare repository (git 1.5.3.3)”
  1. Barry FishmanOct 1, 2007
  2. Junio C HamanoOct 1, 2007
  3. Carl WorthOct 1, 2007
  4. J. Bruce FieldsOct 1, 2007
  5. Junio C HamanoOct 1, 2007
  6. Carl WorthOct 1, 2007
  7. Shawn O. PearceOct 1, 2007
  8. Johannes SchindelinOct 2, 2007
  9. Barry FishmanOct 2, 2007
  10. Johannes SchindelinOct 2, 2007
  11. Barry FishmanOct 2, 2007
  12. Carl WorthOct 2, 2007
  13. Johannes SchindelinOct 2, 2007
  14. Junio C HamanoOct 2, 2007
  15. SeanOct 2, 2007
  16. Junio C HamanoOct 2, 2007
  17. Johannes SchindelinOct 2, 2007
  18. Johannes SchindelinOct 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.