this is the other strange thing:our first Gerrit version is 2.11,and I surely can rename the name of project by mving test\&build to test-and-build in gerrit server,and no care for if it has had changes ,even no flush cache.but now when I upgrade to 3.4.1,it seems that this way is not effective,if anything I have missed??my steps is :$ sudo su - $GERRIT_USER
$ cd $GERRIT_SITE/git
$ mv test\&build test-and-build$ ssh -p 29418 <ip> gerrit flush-caches --cache projects$ ssh -p 29418 <ip> gerrit flush-caches --cache project_listthe last ,I even restart the gerrit service,but the result is still not what I want.In fact,when I do this ,this project is disappeared,also with all merged changes in it.
在2021年12月28日星期二 UTC+8 18:51:06<Sven Selberg> 写道:On Tuesday, December 28, 2021 at 10:09:02 AM UTC+1 yangqia...@gmail.com wrote:Dear ALL:My Gerrit is 3.4.1,and when I create a project named test&build/work,it is successfully.but when I push a patch set to this project,it's open page show this error:Error 400 (Bad Request):no viable alternative at character '&'(1)is it the name of gerrit project no surport to "&"?(2)in order to resolve this error,I have downloaded rename-project plugin to fix the name.but when I do "ssh -p <port> <IP> rename-project test&build/work test_build/work",it warned the error again:no viable alternative at "&"?if anyone let me know how can I resolve this error?Since the project is new and has no changes you should be able to:
1. Rename git on the server:
$ sudo su - $GERRIT_USER
$ cd $GERRIT_SITE/git
$ mv test\&build test-and-build
2 Flush project cache.thank you very much for any reply.
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/a433b204-1413-461c-bac0-38f269225053n%40googlegroups.com.
rename-project plugin is my init question:"(2)in order to resolve this error,I have downloaded rename-project plugin to fix the name.but when I do "ssh -p <port> <IP> rename-project test&build/work test_build/work",it warned the error again:no viable alternative at "&"? "and I try $ ssh -p <port> <IP> rename-project "test\&build/work" test_build/work also,it's still show error: no viable alternative at "&"?在2021年12月29日星期三 UTC+8 22:05:45<Matthias Sohn> 写道:On Wed, Dec 29, 2021 at 7:10 AM Echo <yangqia...@gmail.com> wrote:please avoid top posting on this listthis is the other strange thing:our first Gerrit version is 2.11,and I surely can rename the name of project by mving test\&build to test-and-build in gerrit server,and no care for if it has had changes ,even no flush cache.but now when I upgrade to 3.4.1,it seems that this way is not effective,if anything I have missed??