I got some strange problems when migrating my old git repository which resides in a redmine, to my new Gerrit repository.
Basically i made a
git clone --mirror ssh:// .... old-repo.git
cd old-repo.git/
git push --mirror ssh:// .... new-gerrit-repo
Well, now I first got some warnings:
remote: (W) a01300f: commit message lines >70 characters; manually wrap lines
remote: (W) 8def171: commit subject >65 characters; use shorter first paragraph
which I guess I can ignore, because the original repository will still exist as reference.
My main problem is this error:
! [remote rejected] refs/meta/config (cannot delete project configuration)
error: failed to push some refs to ssh:// .... new-gerrit-repo
After some reading I found out, that this refs/meta/config branch only contains some project specific rules for Gerrit. It's a has a few config files for parametrizing Gerrit. (it's basically the Project Options page under Gerrit "General" Tab) There are no project-related source files.
Can someone help me? Is it save to ignore this error and go on with the migration?
Access push;read;submit rights are given for Administrators on refs/meta/config. Nothing helped.
--
--
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/d/optout.
Hi,
thanks, i saw it.
Now I deleted it and created the correct one:
git ls-remote
8d84eb8bf64e827894325c110b0326ee0342472b HEAD
cf41d73ce7832220ae3886c02e2d18eecef924f8 refs/heads/....
.....
.....
28a36cc348c33d4c230ecb0e698f4510f70df7d5 refs/meta/config
then i made a git remote update on the mirrored clone and tried again but nothing changed; it still doesn't work.
! [remote rejected] refs/meta/config (cannot delete project configuration)
error: failed to push some refs to ssh:// .... new-gerrit-repo! [remote rejected] refs/meta/config (cannot delete project configuration)
error: failed to push some refs to ssh:// .... new-gerrit-reporemote: (W) a01300f: commit message lines >70 characters; manually wrap lines
remote: (W) 8def171: commit subject >65 characters; use shorter first paragraphYou can ignore the warning message ( because you installed commit-message-length-validator plugin)For errors:! [remote rejected] refs/meta/config (cannot delete project configuration)
error: failed to push some refs to ssh:// .... new-gerrit-repoIt's expected result, you don't really want to push refs/meta/config, you should configure/change it in new gerrit server.