public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* archer.git "master" deletion (+branches cleanup)
@ 2011-12-26 23:19 Jan Kratochvil
  2012-01-02 16:31 ` Jim Meyering
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kratochvil @ 2011-12-26 23:19 UTC (permalink / raw)
  To: Jim Meyering; +Cc: archer

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?
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.)


Thanks,
Jan


These branches were in archer.git but not in gdb.git, they have been deleted:
05eb687839ea77a6df73f2daf1069b66bff635e6 archer
cd68314a88e272a6ad194a03b6ffd0b407233f4e origin

The branch gsoc-kayral-python was in archer.git but not in gdb.git, it has been
renamed to archer-gsoc-kayral-python.

These branches were both in archer.git and gdb.git but had different HEAD, they
have been deleted, their HEADs in archer.git were:
d9dea099c68b1afa498e129fa6549fe9eaa9a6bd FSF
b8aecb4fa2fe57717e0e910f9f52da6eae29a60f GDB_4_18
6d491d8ad9122891d1a48447e8c49702eb678921 SNAPSHOT
e1f8e721c1e05e78ae5450fa4b344ba404123905 binutils-2_18-branch
69b32b4370b606799932c18293635bdb49e40af5 cygnus
ef096d3a6c2efb862d80ace1b4c6888fc1da0161 gdb_6_8-branch
cc0bcadcc3b1ef30b04f31fe9ed2cdba846c6088 gdb_7_1-branch
de124f62dc888689a82bb63e77b4cca4ae96407a master
84727be194695038b2220724602a0582d9c81a6f reverse-20080717-branch

These branches were both in archer.git and gdb.git and had the same HEAD, they
have been deleted:
NET Z-emcb-cygwin_daemon add-fakeroots-dir binutils-2_10-branch
binutils-2_11-branch binutils-2_12-branch binutils-2_13-branch
binutils-2_14-branch binutils-2_15-branch binutils-2_16-branch
binutils-2_17-branch binutils-csl-2_17-branch binutils-csl-arm-2005q1-branch
binutils-csl-gxxpro-3_4-branch cagney-unwind-20030108-branch
cagney_bfdfile-20040213-branch cagney_bigcore-20040122-branch
cagney_convert-20030606-branch cagney_fileio-20030521-branch
cagney_frameaddr-20030403-branch cagney_framebase-20030326-branch
cagney_lazyid-20030317-branch cagney_offbyone-20030303-branch
cagney_regbuf-20020515-branch cagney_sysregs-20020825-branch
cagney_tramp-20040309-branch cagney_writestrings-20030508-branch
cagney_x86i386-20030821-branch carlton_dictionary-branch cgf-deleteme
cgf-dev-branch cr-0x5e6 cr-0x5ef cr-0x5f1 cr-0x9b cr-0x9c cr-0x9e
csl-arm-20050325-branch cv-branch cygwin_daemon dberlin-typesystem-branch
drow-cplus-branch drow-reverse-20070409-branch drow_intercu-20040221-branch
ezannoni_pie-20030916-branch ezannoni_pie-20040323-branch gdb-4_18-branch
gdb-csl-20060226-branch gdb-csl-arm-20051020-branch
gdb-csl-available-20060303-branch gdb-csl-gxxpro-6_3-branch
gdb-csl-symbian-20060226-branch gdb-premipsmulti-2000-06-06-branch
gdb_5_0-2000-04-10-branch gdb_5_1-2001-07-29-branch
gdb_5_1_0_1-2002-01-03-branch gdb_5_2-branch gdb_5_3-branch gdb_6_0-branch
gdb_6_1-branch gdb_6_2-branch gdb_6_2-branch-UNNAMED-BRANCH gdb_6_3-branch
gdb_6_4-branch gdb_6_5-branch gdb_6_6-branch gdb_6_7-branch gdb_7_2-branch
gdb_s390-2001-09-26-branch import-1.1.1 interps-20030202-branch
jimb-dwarf-compression-021023-branch jimb-gdb_6_2-e500-branch
jimb-macro-020506-branch jimb-ppc64-linux-20030509-branch
jimb-ppc64-linux-20030528-branch jimb-ppc64-linux-20030613-branch
jimb-rda-nptl-branch jimb-separate-debug-021125-branch
jimb-separate-debug-021223-branch jimb_gnu_v3_branch
kettenis-i386newframe-20030308-branch kettenis_i386newframe-20030406-branch
kettenis_i386newframe-20030419-branch kettenis_sparc-20030918-branch
kseitz_interps-20020528-branch master-UNNAMED-BRANCH mingw-std-ns-branch
mingwex msnyder-fork-checkpoint-branch msnyder-reverse-20060331-branch
msnyder-reverse-20060502-branch msnyder-reverse-20080609-branch
msnyder-tracepoint-checkpoint-branch newlib-autotools-branch
newlib-csl-20060320-branch nickrob-async-20060513-branch noreparent
offbyone-20030313-branch readline_4_3-import-branch readline_5_1-import-branch
sid-20020905-branch tcltk840-20020924-branch vendor

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: archer.git "master" deletion (+branches cleanup)
  2011-12-26 23:19 archer.git "master" deletion (+branches cleanup) Jan Kratochvil
@ 2012-01-02 16:31 ` Jim Meyering
  2012-01-02 18:00   ` Jan Kratochvil
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Meyering @ 2012-01-02 16:31 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: archer

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: archer.git "master" deletion (+branches cleanup)
  2012-01-02 16:31 ` Jim Meyering
@ 2012-01-02 18:00   ` Jan Kratochvil
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kratochvil @ 2012-01-02 18:00 UTC (permalink / raw)
  To: Jim Meyering; +Cc: archer

Hi Jim,

On Mon, 02 Jan 2012 17:31:00 +0100, Jim Meyering wrote:
>   $ git --git-dir=/git/archer.git config receive.denyDeleteCurrent warn
> 
> so you should be able to remove "master", now.

Yes, it works OK:

$ git clone git://sourceware.org/git/archer.git archer-master
Initialized empty Git repository in /home/jkratoch/archer-master/.git/
remote: Counting objects: 344047, done.
remote: Compressing objects: 100% (64898/64898), done.
remote: Total 344047 (delta 276969), reused 339573 (delta 273091)
Receiving objects: 100% (344047/344047), 131.11 MiB | 473 KiB/s, done.
Resolving deltas: 100% (276969/276969), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.
$ cd archer-master
$ git branch
$ _



Thanks,
Jan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-02 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-26 23:19 archer.git "master" deletion (+branches cleanup) Jan Kratochvil
2012-01-02 16:31 ` Jim Meyering
2012-01-02 18:00   ` Jan Kratochvil

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).