Git development
 help / color / mirror / Atom feed
From: Sitaram Chamarty <sitaramc@gmail.com>
To: git@vger.kernel.org
Subject: Re: [ANNOUNCE] GIT 1.6.3
Date: Thu, 7 May 2009 17:39:54 +0000 (UTC)	[thread overview]
Message-ID: <slrnh0677a.at.sitaramc@sitaramc.homelinux.net> (raw)
In-Reply-To: bbd12f0f0905070758q697f11fck259db4a0207d0aa7@mail.gmail.com

On 2009-05-07, Jeff Brown <jeff@jeffandbetsy.net> wrote:
> On Thu, May 7, 2009 at 2:09 AM, Junio C Hamano <gitster@pobox.com> wrote:
>>
>> With the next major release, "git push" into a branch that is
>> currently checked out will be refused by default.  You can choose
>> what should happen upon such a push by setting the configuration
>> variable receive.denyCurrentBranch in the receiving repository.
>>
>
> I want to make sure I understand how this will work.  Could you
> describe the simplest set of steps necessary to get into this
> situation where the push would be refused?

Most common scenario, happens often on irc, is you clone
repo A to repo B, make some changes, and push.  If all the
defaults (simplest case) are used repo A has "master"
checked out, and repo B then tries to push to that same
(checked out) branch.

So:
    mkdir A; cd A; git init; make-some-commits
    cd ..;git clone A B;cd B; make-some-other-commits
    # and then
    git push    # from master on B to master on A

      reply	other threads:[~2009-05-07 17:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-07  7:09 [ANNOUNCE] GIT 1.6.3 Junio C Hamano
2009-05-07 14:58 ` Jeff Brown
2009-05-07 17:39   ` Sitaram Chamarty [this message]

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=slrnh0677a.at.sitaramc@sitaramc.homelinux.net \
    --to=sitaramc@gmail.com \
    --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