Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Any problems pushing to Gerrit?

On 06.09.2012 06:33, Marc Khouzam wrote:
You have to deal with your works proxy/firewall to work with this port.
If your firewall blocks the port, you have to use https and the special password from the gerrit web (see http://wiki.eclipse.org/CDT/git#Using_Gerrit_for_CDT)
but you'll have to go through your proxy in that case.

In my case, both ssh and https used to work very smootly (once I figured out the proxy/firewall settings)
but now they both fail.  I've opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=388879 with the webmasters.


Can someone who's done Gerrit pushes before try a dry-run?  You don't have to go through with the push
you can just get to the EGit prompt that tells you what commit will be pushed, then press cancel.  In my case, the
failure happens even before the push is confirmed.

I run into the same issue:

$ git push review

fatal: One or more refs/for/ names blocks change upload
fatal: The remote end hung up unexpectedly

> One theory is that a real refs/for branch was created on git and therefore blocking gerrit, but I've fetched
> everything and don't see such a branch

That's because default fetch spec does not fetch it. Try this:

$ git fetch origin +refs/for/*:refs/remotes/origin/for/*
remote: Counting objects: 39, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 21 (delta 9), reused 0 (delta 0)
Unpacking objects: 100% (21/21), done.
From git://git.eclipse.org/gitroot/cdt/org.eclipse.cdt
 * [new branch]      refs/for/master -> origin/for/master

And I believe here's the commit that was pushed to the wrong place:

commit 6988a0a0bd6896c492ebf86b9c19a9f910a07f6c
Author: Andrew Gvozdev <angvoz.dev@xxxxxxxxx>
Date:   Tue Sep 4 17:34:05 2012 -0400

    bug 388755: Fix EFSExtensionProvider to return conventional path on Windows as C:/path (without extra leading slash)

    Change-Id: I82507744f069d774579f0bdd301e210df8157305

Is this enough for whomever has the power to fix this?

--
Vladimir Prus
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/


Back to the top