From: Junio C Hamano <gitster@pobox.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 2/2] git-init: set receive.guardCurrentBranch = true for non-bare repositories
Date: Sun, 23 Mar 2008 17:24:02 -0700 [thread overview]
Message-ID: <7v4pax3r6l.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: alpine.LSU.1.00.0803232144070.4353@racer.site
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> When initializing a non-bare repositories, you most likely want to avoid
> pushing into the current branch (because a push does not touch the
> working tree at all).
As I described in my other message, I suspect that treating the current
branch specially like this is a wrong approach. The configuration might
be a good idea, but shouldn't it prevent any local branch from getting
updated? Push into non-bare repository is simply a fetch run in reverse
direction.
next prev parent reply other threads:[~2008-03-24 0:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-23 20:43 [PATCH 1/2] Introduce receive.guardCurrentBranch Johannes Schindelin
2008-03-23 20:44 ` [PATCH 2/2] git-init: set receive.guardCurrentBranch = true for non-bare repositories Johannes Schindelin
2008-03-24 0:24 ` Junio C Hamano [this message]
2008-03-24 11:00 ` Johannes Schindelin
2008-03-24 16:50 ` Junio C Hamano
2008-03-24 17:10 ` Johannes Schindelin
2008-03-24 22:08 ` Daniel Barkalow
2008-03-24 22:31 ` Johannes Schindelin
2008-03-24 1:21 ` [PATCH 1/2] Introduce receive.guardCurrentBranch Miklos Vajna
2008-03-24 11:01 ` Johannes Schindelin
2008-03-24 14:10 ` Miklos Vajna
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=7v4pax3r6l.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/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).