Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Weimin Pan <weimin.pan@oracle.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Simon Marchi <simon.marchi@polymtl.ca>, gdb-patches@sourceware.org
Subject: Re: [PATCH5 PR gdb/16959] gdb hangs in infinite recursion
Date: Sat, 31 Mar 2018 00:31:00 -0000	[thread overview]
Message-ID: <8c729b8f-24db-c746-e0e6-744ca7edd92f@oracle.com> (raw)
In-Reply-To: <20180330234143.mtj7u2xcfi7oxli4@adacore.com>



On 3/30/2018 4:41 PM, Joel Brobecker wrote:
>> $ git push upstream fixes:master
>> Enter passphrase for key '/home/wepan/.ssh/id_rsa':
>> To ssh://sourceware.org/git/binutils-gdb.git
>>   ! [rejected]        fixes -> master (non-fast-forward)
>> error: failed to push some refs to
>> 'ssh://sourceware.org/git/binutils-gdb.git'
>> To prevent you from losing history, non-fast-forward updates were rejected
>> Merge the remote changes before pushing again.  See the 'Note about
>> fast-forwards' section of 'git push --help' for details.
>>
>> Does it mean that I  need to do a "git merge"?
> Not quite. It is telling you that your "fixes" branch is behind
> upstream's "master".  You need to do a "rebase" your "fixes" branch
> instead (while having the "fixes" being the current branch):
>
>      $ git rebase upstream/master
>
> You may have some conflicts to resolve, particularly around
> ChangeLog files.

After the "git rebase" command, it no longer points to my branch:

$ git show
commit d8611974cf819e5f8cb9eb36907251f3e2d721c6
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Fri Mar 30 17:18:56 2018 -0400
....

$ git branch
* (no branch)
   fixes
   master

> Once that's done, do a "git show" to make sure your commit looks
> exactly the way you think it should look (in particular, that
> the "diff" contains exactly the changes you mean to push).
> And then, once done, try the push command again.
>


  reply	other threads:[~2018-03-31  0:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28 21:11 Weimin Pan
2018-03-30  5:09 ` Simon Marchi
2018-03-30 21:44   ` Weimin Pan
2018-03-30 22:05     ` Simon Marchi
2018-03-30 22:39       ` Weimin Pan
2018-03-30 22:52         ` Joel Brobecker
2018-03-30 23:32           ` Weimin Pan
2018-03-30 23:45             ` Joel Brobecker
2018-03-30 23:32           ` Weimin Pan
2018-03-30 23:41             ` Joel Brobecker
2018-03-31  0:31               ` Weimin Pan [this message]
2018-03-31  1:52                 ` Joel Brobecker
2018-03-31  3:32                   ` Wei-min Pan
2018-04-02 13:44                     ` Joel Brobecker
2018-04-02 17:27                       ` Wei-min Pan
2018-04-02 17:53                         ` Joel Brobecker
2018-04-02 19:28   ` [pushed][PATCH5 " Weimin Pan

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=8c729b8f-24db-c746-e0e6-744ca7edd92f@oracle.com \
    --to=weimin.pan@oracle.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@polymtl.ca \
    /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