Git svn clone prints hundreds of "errors: too many matches for svn-remote.svn.added-placeholder"

I ran the following command to clone the SVN repository:

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

      

This ran successfully for several hours, but now prints the following message many, many times for each revision:

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

      

The cloning process continues; I see changes appearing in the logs between these messages. However, the number of times this error is printed seems to increase. The first problematic revision resulted in the error being printed 39 times; next 78; then 117 - the latest revision at the time of this writing was causing this error to be printed 13,604 times.

I am cloning this repository from scratch because an existing repository that I have been successfully working from for many months also ran into this error. Everything was fine until I executed git svn fetch

, which I think was called git svn to discover the new branch that caused this error.

I can check out the first revision that displayed this error without issue when using SVN and was able to update the revision successfully.

Has anyone seen this before? Any hints to fix the error?

+3


source to share


1 answer


Solvable problem this morning.

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



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

The code can be seen at: https://github.com/git/git/blob/master/config.c

+1


source







All Articles