Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Jim Meyering <jim@meyering.net>
Cc: gdb@sourceware.org
Subject: Possible excessive HEAD branch for gdb.git
Date: Thu, 08 Oct 2009 21:16:00 -0000	[thread overview]
Message-ID: <20091008211555.GA5939@host0.dyn.jankratochvil.net> (raw)

Hi Jim,

I had some problems with:

$ git clone git://sourceware.org/git/archer.git
[...]
$ git pull origin
From ssh://sourceware.org/git/archer
 + d77cced...e2fb0c1 HEAD       -> origin/HEAD  (forced update)
Already up-to-date.
$ git checkout master
Already on 'master'
Your branch is ahead of 'origin/master' by 115 commits.
$ git pull origin
From ssh://sourceware.org/git/archer
   e2fb0c1..d77cced  master     -> origin/master
Already up-to-date.
$ git checkout master
Already on 'master'

found out it got fixed by:

$ git push origin :HEAD
To ssh://sourceware.org/git/archer.git
 - [deleted]         HEAD

HEAD has no meaning to be present on the server and as one can see in some
cases it may cause some problems.

As current archer.git/gdb.git came from local clones/checkouts HEAD was present
there.

Deleted HEAD now from `archer.git'.  Suggesting one should delete it also from
gdb.git but:

* I see no actual problems HEAD existence would cause for `gdb.git'.

* I even tried to do it but it failed for: ssh://sourceware.org/git/gdb.git
  error: unable to push to unqualified destination: HEAD
  The destination refspec neither matches an existing ref on the remote nor
  begins with refs/, and we are unable to guess a prefix based on the source ref.
  fatal: The remote end hung up unexpectedly
  error: failed to push some refs to 'ssh://sourceware.org/git/gdb.git'

Sorry I did not delete it in advance.


Thanks,
Jan


             reply	other threads:[~2009-10-08 21:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08 21:16 Jan Kratochvil [this message]
2009-10-09  8:55 ` Andreas Schwab
2009-10-09 17:28   ` Jan Kratochvil
2009-10-09 19:56     ` Andreas Schwab

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=20091008211555.GA5939@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=jim@meyering.net \
    /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