Reputation: 9144
I'm having trouble cloning svn repository from Git. I have defined users.txt file containing all users who contributed in SVN repo. Then I execute the following command to clone SVN repo:
git svn clone --no-metadata --authors-file=C:/temp/Migration/AES_Exchange/users.txt https://some.url.com
/repos/Exchange Git_SVN
But I get an error stating:
"Author: SVNAdmin not defined in C:/temp/Migration/AES_Exchange/users.txt file"
Even though that user is defined in users.txt file.
SVNAdmin = svnadmin <[email protected]>
adaraz = adaraz <[email protected]>
Any help would be greatly appreciated.
Thanks
Upvotes: 4
Views: 3995
Reputation: 9144
I'm not sure what caused the issue, but changing users.txt encoding from UTF8 BOM to UTF8 fixed the issue. I used notepad++ -> Encoding -> Encode in UTF-8 -> Save. I read somewhere that because BOM comes with header, Git was unable to properly read first line in the file, and hence, misses the first user. I lost the link so can't share it, sorry for that, but anyway, looks like a lame bug.
Upvotes: 8
Reputation: 38734
Do you use Git for Windows or Cygwin Git? If the latter you might need to give the path in Cygwin syntax. If the former try using backslashes and quotes around the option or double backslashes or a combination.
Upvotes: 1