Fitz Fitzpatrick <fitzwor...@gmail.com> writes:

> Knut,
>
> I'm running the indexing from the command line, so a SVN client (as
> such) isn't involved.

Well, the indexer invokes /usr/bin/svn, which is a Subversion client. :)

Maybe it would work if you create a wrapper script around /usr/bin/svn
to pass on your credentials. Something like this:

#!/bin/sh
exec svn --username user --password secret "$@"

And then you could point the system property
org.opensolaris.opengrok.history.Subversion to that wrapper script. The
OpenGrok script can set the property for you if you set the SVN
environment variable (export SVN=/path/to/wrapper).

> Did I do this right?:
>    I checked out the code from SVN
>    I tried indexing that
> using this command:
> sudo OPENGROK_VERBOSE=true OPENGROK_INSTANCE_BASE=/usr/opengrok ./OpenGrok 
> index /home/fitzer/src/emea
>
> Is this correct?

Yes, that's how it's supposed to be done. The expected behaviour is that
you need to type the user name and password when you check out the code,
if authentication is required, and that Subversion will cache the
credentials so that you don't need to type them again when running the
indexer.

What does the [auth] section in your ~/.subversion/config say?

Oh, wait a minute... You're running the indexer as root (using sudo)?
Did you check out the source code as root too? Perhaps it works better
if you check out the code and run the indexer as the same user. (I
haven't tried, so I don't know.)

-- 
Knut Anders
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

Reply via email to