tags 627185 + upstream
severity 627185 normal
retitle 627185 git-svn clobbers passtype:gnome-keyring under ~/.subversion/auth
quit

Hi Victor,

Victor Pablos Ceruelo wrote:

> I've tried to configure git-svn to use gnome-keyring-daemon with no luck at 
> all.
> Indeed, I have found that it modifies stored pwd file svn uses and then
> I have to write my pwd each time until I use again subversion (which changes
> again the file):
>
> vpablos@chiquitin:~/tmp/tmp-1$ svn co 
> https://babel.ls.fi.upm.es/svn/negation_and_fuzzy_logic --depth=empty
> Checked out revision 124.
> vpablos@chiquitin:~/tmp/tmp-1$ cat ~/.subversion/auth/svn.simple/*
> K 8
> passtype
> V 13
> gnome-keyring
> K 15
> svn:realmstring
[...]
> vpablos@chiquitin:~/tmp/tmp-2$ git svn clone 
> https://babel.ls.fi.upm.es/svn/negation_and_fuzzy_logic 
[...]
> vpablos@chiquitin:~/tmp/tmp-2$ cat ~/.subversion/auth/svn.simple/*
> K 15
> svn:realmstring

Wow, that's not good at all.  Sadly I'm not sure I'll have time to
work on this soon.  git svn uses the perl SVN::Client library;
probably the relevant code is somewhere near this tidbit from the
Git::SVN::Ra package:

 sub new {
        my ($class, $url) = @_;
        $url =~ s!/+$!!;
        return $RA if ($RA && $RA->{url} eq $url);

        ::_req_svn();

        SVN::_Core::svn_config_ensure($config_dir, undef);
        my ($baton, $callbacks) = SVN::Core::auth_open_helper(_auth_providers);
        my $config = SVN::Core::config_get_config($config_dir);
        $RA = undef;
 [...]

The _auth_providers are in a list within "git svn"; see git-svn.perl
or /usr/lib/git-core/git-svn.  That just seems wrong --- do you happen
to know if the SVN lib provides some way to (1) use all authentication
methods that the commandline client knows and (2) leave parts of the
auth cache we don't understand alone?

Thanks for reporting,
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to