Delete branch/tag issue through SSH

1,144 views
Skip to first unread message

Marcelo Avila de Oliveira

unread,
May 15, 2013, 8:03:04 AM5/15/13
to Repo and Gerrit Discussion
Hi,

I get the following error when trying to remove a branch using SSH:

> git push ssh://gerrit.cpqd.com.br:29418/sandbox/helloworld :refs/heads/test_branch
remote: Branch refs/heads/test_branch:
remote: You need 'Push' rights with the 'Force Push'
remote: flag set to delete references.
remote: User: mavila
remote: Please read the documentation and contact an administrator
remote: if you feel the configuration is incorrect
remote: Processing changes: refs: 1, done    
 ! [remote rejected] test_branch (cannot delete references)
error: failed to push some refs to 'ssh://gerrit.cpqd.com.br:29418/sandbox/helloworld'

The error do not happen if I use HTTP:

> git push https://gerrit.cpqd.com.br/sandbox/helloworld :refs/heads/test_branch
remote: Processing changes: refs: 1, done    
 - [deleted]         test_branch

Notes:
- The same problem happens trying to remove a tag using SSH
- I have 'Push' rights with the 'Force Push' set for 'refs/heads/*' and 'refs/tags/*'
- The 'delete' button in the web UI works nicely too

I reproduced this in 2.6-rc2 and 2.5.2-1277-gca0bdda

Thanks & regards,

--
Marcelo Ávila de Oliveira
CPqD - Information Technology Engineer

Chunlin Zhang

unread,
Jun 24, 2013, 10:40:18 PM6/24/13
to repo-d...@googlegroups.com, mav...@cpqd.com.br, yanhu...@gmail.com
I got this issue too.Mine is 2.6-rc1.
Does you two fix this issue by upgrade to new version?


在 2013年5月24日星期五UTC+8下午7时48分06秒,Huang Yan写道:
I also have similar issue, I have grant Push and Force Push privilege to administrators, 
But I still can not delete tag by git command as below:
    git push origin +:refs/tags/sometag

My Gerrit version is 2.6-rc1, Does anyone else also encountered the same issue?  Does this fixed in the latest version, which is 2.6-rc3 maybe?

Edwin Kempin

unread,
Jun 25, 2013, 1:50:48 AM6/25/13
to Chunlin Zhang, repo-d...@googlegroups.com, mav...@cpqd.com.br, yanhu...@gmail.com
yes, upgrading should fix this issue, see [1]

[1] https://code.google.com/p/gerrit/issues/detail?id=1902

2013/6/25 Chunlin Zhang <zhangc...@gmail.com>

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Chunlin Zhang

unread,
Jun 25, 2013, 11:39:28 AM6/25/13
to Edwin Kempin, Repo and Gerrit Discussion, mav...@cpqd.com.br, yanhu...@gmail.com
I have upgrade to 2.6.1 and found it fixed!
Thanks!

Huang Yan

unread,
Jun 26, 2013, 1:12:58 AM6/26/13
to Chunlin Zhang, Edwin Kempin, Repo and Gerrit Discussion, mav...@cpqd.com.br
me, too. on 2.6.1 the 
Thanks all!
Reply all
Reply to author
Forward
0 new messages