Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] Gerrit breaks remote branch clean-up?

Hi, Team,

Since the adoption of Gerrit, it seems that I can no longer clean up obsolete (merged) bug branches by moving them into the archives/ path as recently agreed by the committers.

$ git push origin bugs/404874-macfocus:refs/heads/archives/bugs/404874-macfocus :bugs/404874-macfocus
Total 0 (delta 0), reused 0 (delta 0)
remote: Branch refs/heads/bugs/404874-macfocus:
remote: You need 'Push' rights with the 'Force Push'
remote: flag set to delete references.
remote: User: cdamus
remote: Please read the documentation and contact an administrator
remote: if you feel the configuration is incorrect
remote: Processing changes: refs: 2, done    
To ssh://cdamus@xxxxxxxxxxxxxxx:29418/papyrus/org.eclipse.papyrus
 * [new branch]      origin/bugs/404874-macfocus -> archives/bugs/404874-macfocus
 ! [remote rejected] bugs/404874-macfocus (cannot delete references)
error: failed to push some refs to 'ssh://cdamus@xxxxxxxxxxxxxxx:29418/papyrus/org.eclipse.papyrus'

It appears that we now need "force push" privileges, which we did not previously need, to delete branches from the Eclipse git server.

We still need to be able to clean up branches, right?

Thanks,

Christian


Back to the top