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

> " 
> 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:

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:
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):

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.


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

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:
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.
This leads me to the conclusion that the problem is on remote side.
Any ideas on how to resolve this?
Stefan Sprenger

Back to the top