From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8983 invoked by alias); 2 Jan 2012 16:31:19 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 8973 invoked by uid 22791); 2 Jan 2012 16:31:15 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org From: Jim Meyering To: Jan Kratochvil Cc: archer@sourceware.org Subject: Re: archer.git "master" deletion (+branches cleanup) In-Reply-To: <20111226231836.GA32067@host2.jankratochvil.net> (Jan Kratochvil's message of "Tue, 27 Dec 2011 00:18:36 +0100") References: <20111226231836.GA32067@host2.jankratochvil.net> Date: Mon, 02 Jan 2012 16:31:00 -0000 Message-ID: <87fwfyukvv.fsf@rho.meyering.net> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2012-q1/txt/msg00000.txt.bz2 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.