git svn clone prints hundreds of “error: too many matches for svn-remote.svn.added-placeholder”

走远了吗. 提交于 2019-12-10 16:46:14

问题


I ran the following command to clone an SVN repository:

git svn clone -s --preserve-empty-dirs --username=my_svn_username https://svn.repo/path projectname

This ran successfully for a few hours, but is now printing the following message many, many times per revision:

error: too many matches for svn-remote.svn.added-placeholder

The clone process appears to continue; I can see revisions appear in the logs between these messages. However, the number of times this error is printed seems to be increasing. The first problematic revision resulted in the error being printed 39 times; the next 78; then 117 - the latest revision at time of writing caused the above error to be printed 13,604 times.

I'm cloning this repository from scratch because the existing repository from which I have been working successfully for many months has also encountered this error. Everything was fine until I performed a git svn fetch which I believe caused git svn to discover a new branch which prompted this error.

I am able to checkout the first revision that displayed this error without problem when using SVN, and can update revision-by-revision successfully.

Has anyone seen this before? Any clues to resolving the error?


回答1:


Solved problem this morning.

There is definition #define MAX_MATCHES 512 in config.c which limits empty directories to 512.

Change it to something larger and use "make" and "make install" commands to compile and install git again to the computer.

Code can be seen in: https://github.com/git/git/blob/master/config.c



来源:https://stackoverflow.com/questions/14512292/git-svn-clone-prints-hundreds-of-error-too-many-matches-for-svn-remote-svn-add

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!