git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn fails with non-alphanumeric SVN authors
@ 2010-02-24 20:47 Craig de Stigter
  2010-02-25  2:52 ` Mark Lodato
  0 siblings, 1 reply; 2+ messages in thread
From: Craig de Stigter @ 2010-02-24 20:47 UTC (permalink / raw)
  To: git

Hi list

I'm trying to use git-svn to move our subversion to git. Some of the
authors in our SVN repository are x.509 identifiers, so my authors
file has some entries like this:
   /C=NZ/ST=New Zealand/L=Auckland/O=Koordinates
Ltd/OU=IS/CN=cdestigter = Craig de Stigter
<craig.destigter@koordinates.com>

git-svn doesn't like that - it fails saying:
   Author: /C=NZ/ST=New Zealand/L=Auckland/O=Koordinates
Ltd/OU=IS/CN=cdestigter not defined in ./authors.txt file

I presume it is choking on either the spaces or the '=' characters in
the SVN username?

Comments / workarounds / fixes welcome... I'm avoiding messing with
git-svn myself since I have no perl knowledge at all.

Thanks for any help
Craig de Stigter

--
Koordinates Ltd
PO Box 1604, Shortland St, Auckland, New Zealand
Phone +64-9-966 0433 Fax +64-9-969 0045
Web http://www.koordinates.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git-svn fails with non-alphanumeric SVN authors
  2010-02-24 20:47 git-svn fails with non-alphanumeric SVN authors Craig de Stigter
@ 2010-02-25  2:52 ` Mark Lodato
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Lodato @ 2010-02-25  2:52 UTC (permalink / raw)
  To: Craig de Stigter; +Cc: git

On Wed, Feb 24, 2010 at 3:47 PM, Craig de Stigter
<craig.destigter@koordinates.com> wrote:
> I'm trying to use git-svn to move our subversion to git. Some of the
> authors in our SVN repository are x.509 identifiers, so my authors
> file has some entries like this:
>   /C=NZ/ST=New Zealand/L=Auckland/O=Koordinates
> Ltd/OU=IS/CN=cdestigter = Craig de Stigter
> <craig.destigter@koordinates.com>
>
> git-svn doesn't like that - it fails saying:
>   Author: /C=NZ/ST=New Zealand/L=Auckland/O=Koordinates
> Ltd/OU=IS/CN=cdestigter not defined in ./authors.txt file
>
> I presume it is choking on either the spaces or the '=' characters in
> the SVN username?

Yes.  The --authors-file option reads the name up to the first equals
sign, which causes a problem for the X.509 identifiers.  I had this
exact problem, which is why I implemented --authors-prog. [1]  In my
case, I could compute the username and email address from the X.509
id, so I didn't have to list them all out.  Perhaps you can use this
to solve your problem?  Even if you can't compute the name directly
from the X.509 ID, you could implement your own lookup in a script.

[1] http://www.spinics.net/lists/git/msg103524.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-25  2:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 20:47 git-svn fails with non-alphanumeric SVN authors Craig de Stigter
2010-02-25  2:52 ` Mark Lodato

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).