Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Failed pushing gerrit update

> "https://git.eclipse.org/r/cdt/org.eclipse.cdt.git: 
> One or more refs/for/ names blocks change upload"

This problem happens to us once in a while, I'll send a follow-up email to reduce that likely-hood.
When we want to push to Gerrit we use the special branch name "refs/for/master".
If for some reason, our Git repo has a real branch called "refs/for/master" then we 
cannot push to Gerrit anymore.

Vladimir figured this out the first time it happened:
https://dev.eclipse.org/mhonarc/lists/cdt-dev/msg24935.html

Alex B pointed to a way to check if we are in this situation by looking for the problematic branch
directly on our Git repo using this URL in a browser:
http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/log/?h=for/master
If there is content in the branch, then we have the problem.

I believe a real refs/for/master branch can only be created if we use the old Git URL
when pushing (the one going directly to Git and not through the Gerrit server).  
If we use the new Gerrit/Git URL all the time, this should not happen (I think):
  ssh://commiterId@xxxxxxxxxxxxxxx:29418/cdt/org.eclipse.cdt.git

To remove a real refs/for/master branch though, a committer needs to use
the directly Git URL and delete the branch.  This is what I did.

Thanks Stefan and Jonah for reporting it.

Marc


--------------------------------------------------------------------------
From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] on behalf of stefan [stefan@sprenger.software]

Sent: April 11, 2016 8:24 AM

To: cdt-dev@xxxxxxxxxxx

Subject: [cdt-dev] Failed pushing gerrit update

Hi folks!
 
I tried to update my bug on gerrit via a push  to remote, it fails with the following error message:
 
„https://git.eclipse.org/r/cdt/org.eclipse.cdt.git: 
One or more refs/for/ names blocks change upload“
 
As I can see (Jonah suggested me to look at the link below), no new updates are there after the 8th of April.
https://git.eclipse.org/r/#/q/project:cdt/org.eclipse.cdt
 
This leads me to the conclusion that the problem is on remote side.
 
Any ideas on how to resolve this?
 
Regards
Stefan Sprenger
 






Back to the top