Author not defined when importing SVN repository into Git

There were two problems:

I solved the first by assigning unique email addresses to each author.

Also, the username was "patrick ". I have no idea how that happened, but by using svnadmin I was able to change all instances of that nickname to just "patrick".


I've had the same issue when trying to execute this on Windows. It turned out that the encoding of the file that I stored the authors in was set to UTF-8 instead of UTF-8 without BOM. As the "with BOM" version adds some additional bytes to the beginning of the file, the first author in the list was never found.


I had the same problem but the cause was actually rather different: I used Powershell to dump the authors list from SVN and I didn't realized that it saved the result as a UTF-16 file.

It turned out git (at least, up to git for windows version 2.16.1) is unable to use UTF-16 files. Converting the file to UTF-8 did the trick for me.


I had the same issue. The format of the authors.txt is strict with the form

svn name = user name ‹email›

as in:

cruise-control = Cruise Control ‹[email protected]›
user1 = User1 Lastname1 ‹[email protected]›
user2 = User2 Lastname2 ‹[email protected]›

For instance this format won't work:

user1 = [email protected]

Tags:

Git

Git Svn