public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Martin Sebor <msebor@gmail.com>
To: Jeff Law <law@redhat.com>, Jason Merrill <jason@redhat.com>
Cc: Rainer Orth <ro@cebitec.uni-bielefeld.de>,
	Gcc Patch List <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] restore pedantic warning on flexible array members (c++/71290)
Date: Sat, 28 Jan 2017 15:02:00 -0000	[thread overview]
Message-ID: <34efbf85-47a7-1ecd-acbd-7b0b0584cd5e@gmail.com> (raw)
In-Reply-To: <260bcc16-dce2-b044-c4fd-e7af337579e5@redhat.com>

On 01/27/2017 05:01 PM, Jeff Law wrote:
> On 01/27/2017 02:28 PM, Martin Sebor wrote:
>> On 01/27/2017 11:20 AM, Jason Merrill wrote:
>>> On Fri, Jan 27, 2017 at 11:56 AM, Martin Sebor <msebor@gmail.com> wrote:
>>>> FWIW, I could avoid this awkward setup if I had just one repo for all
>>>> my changes, shared across my various machines.  Unfortunately, for it
>>>> to really work I would also need to be able to commit using Git rather
>>>> than Subversion which doesn't work.  At least not according to the
>>>> instructions on the Wiki.
>>>
>>> What's the problem?
>>
>> We discussed it in the thread below:
>>
>>   https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00335.html
>>
>> I think Jonathan and/or Ville had some suggestions on IRC for how
>> to work around the broken setup.  I never got it to work but I also
>> didn't try too hard, thinking the Git conversion would be done soon.
>>
>> I don't remember the errors I was getting then but I just tried to
>> follow the Wiki steps again.  On tor git svn init fails like so:
>>
>> $ git svn init -s --prefix=svn/ svn+ssh://msebor@gcc.gnu.org/svn/gcc
>> Network connection closed unexpectedly: Unable to connect to a
>> repository at URL 'svn+ssh://msebor@gcc.gnu.org/svn/gcc': To better
>> debug SSH connection problems, remove the -q option from 'ssh' in the
>> [tunnels] section of your Subversion configuration file. at
>> /usr/share/perl5/vendor_perl/Git/SVN.pm line 310.
>>
>> (Removing the -q option from the [tunne;s] section of my
>> ~/.subversion/config file has no effect.)
>>
>> On my machine, git svn init and the rest of the steps succeeded (as
>> they did before) but commit failed (as it did before, though possibly
>> with a different error). The one I get now is:
>>
>> $ git svn dcommit
>> Cannot dcommit with a dirty index.  Commit your changes first, or stash
>> them with `git stash'.
>>  at /usr/libexec/git-core/git-svn line 836.
>>
>> I did a quick search online for the error.  I see others as confused
>> by it as I am and various suggestions to run various commands none
>> of which works.
>>
>> I understand you can commit from your existing repo but does following
>> all the steps as I did work for you?  How about on tor?
> So I would start with a checkout of a git tree, then use the
> instructions to turn that into a SVN-writable tree.  Those have worked
> flawless for me in the past.
>
> You can also do something like
> ssh -v msebor@gcc.gnu.org ls
>
> To see if anything useful comes up.
>
> THe dirty index means you've got local changes that are not committed.
> What does a "git status" report?

Aha!  That's the missing step from the Wiki!  Once I commit the changes
to my local repository git svn dcommit succeeds and pushes them to the
FSF repository.  Let me update the  Wiki to make this clear.

Thanks for the hint.

Martin

      reply	other threads:[~2017-01-28  0:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25 17:32 Martin Sebor
2017-01-25 17:50 ` Jason Merrill
2017-01-26  0:03 ` Jakub Jelinek
2017-01-26  0:05   ` Martin Sebor
2017-01-27  9:46 ` Rainer Orth
2017-01-27 17:07   ` Martin Sebor
2017-01-27 17:47     ` Andreas Schwab
2017-01-27 18:30     ` Jason Merrill
2017-01-27 20:05       ` Jeff Law
2017-01-27 21:35       ` Martin Sebor
2017-01-28  0:33         ` Jeff Law
2017-01-28 15:02           ` Martin Sebor [this message]

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=34efbf85-47a7-1ecd-acbd-7b0b0584cd5e@gmail.com \
    --to=msebor@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    --cc=law@redhat.com \
    --cc=ro@cebitec.uni-bielefeld.de \
    /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).