git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Carl Worth <cworth@cworth.org>
Cc: Junio C Hamano <gitster@pobox.com>,
	Barry Fishman <barry_fishman@acm.org>,
	git@vger.kernel.org
Subject: Re: Problems setting up bare repository (git 1.5.3.3)
Date: Tue, 2 Oct 2007 18:45:40 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0710021841300.28395@racer.site> (raw)
In-Reply-To: <87641psey8.wl%cworth@cworth.org>

Hi,

On Tue, 2 Oct 2007, Carl Worth wrote:

> 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

  reply	other threads:[~2007-10-02 17:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-01 21:46 Problems setting up bare repository (git 1.5.3.3) Barry Fishman
2007-10-01 22:32 ` Junio C Hamano
2007-10-01 23:06   ` Carl Worth
2007-10-01 23:17     ` J. Bruce Fields
2007-10-01 23:24     ` Junio C Hamano
2007-10-01 23:47       ` Carl Worth
2007-10-01 23:35     ` Shawn O. Pearce
2007-10-02  9:46     ` Johannes Schindelin
2007-10-02 13:54       ` Barry Fishman
2007-10-02 17:40         ` Johannes Schindelin
2007-10-02 19:54           ` Barry Fishman
2007-10-02 15:39       ` Carl Worth
2007-10-02 17:45         ` Johannes Schindelin [this message]
2007-10-02 18:23           ` Junio C Hamano
2007-10-02 18:55             ` Sean
2007-10-02 19:09               ` Junio C Hamano
2007-10-02 21:02                 ` Johannes Schindelin
2007-10-02 20:59               ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0710021841300.28395@racer.site \
    --to=johannes.schindelin@gmx.de \
    --cc=barry_fishman@acm.org \
    --cc=cworth@cworth.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).