问题
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