public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
From: Jim Meyering <jim@meyering.net>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: archer@sourceware.org
Subject: Re: archer.git "master" deletion (+branches cleanup)
Date: Mon, 02 Jan 2012 16:31:00 -0000	[thread overview]
Message-ID: <87fwfyukvv.fsf@rho.meyering.net> (raw)
In-Reply-To: <20111226231836.GA32067@host2.jankratochvil.net> (Jan Kratochvil's message of "Tue, 27 Dec 2011 00:18:36 +0100")

Jan Kratochvil wrote:
> Hello Jim,
>
> there was confusion with people trying to checkout "master" from archer.git
> expecting it to do something - but there is no such single branch for Archer.
>
> I tried to delete the "master" branch but I cannot:
>
> $ git push archer :master
> remote: error: By default, deleting the current branch is denied, because the next
> remote: error: 'git clone' won't result in any file checked out,
> causing confusion.
> remote: error:
> remote: error: You can set 'receive.denyDeleteCurrent' configuration variable to
> remote: error: 'warn' or 'ignore' in the remote repository to allow deleting the
> remote: error: current branch, with or without a warning message.
> remote: error:
> remote: error: To squelch this message, you can set it to 'refuse'.
> remote: error: refusing to delete the current branch: refs/heads/master
> To ssh://sourceware.org/git/archer.git
>  ! [remote rejected] master (deletion of the current branch prohibited)
> error: failed to push some refs to 'ssh://sourceware.org/git/archer.git'
>
> Could you please reconfigure it or also even delete the "master" branch there?

Hi Jan,

I've done as the diagnostic suggested and set this:

  $ git --git-dir=/git/archer.git config receive.denyDeleteCurrent warn

so you should be able to remove "master", now.

> It works as expected on my local test git repo.  Checking out nothing by
> default is IMO the best thing to do for archer.git.
>
> (The tags are left over there, nobody is using them in Archer.)

If you need help removing them, just let me know.

  reply	other threads:[~2012-01-02 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-26 23:19 Jan Kratochvil
2012-01-02 16:31 ` Jim Meyering [this message]
2012-01-02 18:00   ` Jan Kratochvil

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=87fwfyukvv.fsf@rho.meyering.net \
    --to=jim@meyering.net \
    --cc=archer@sourceware.org \
    --cc=jan.kratochvil@redhat.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 read-only IMAP folder(s) and NNTP newsgroup(s).