tags:

views:

1198

answers:

2

I'm using git-svn with a couple of work projects and I've noticed that for just about every action I take, I get prompted for my Svn password. For some actions, I get prompted multiple times (presumably b/c there are several actions going on behind the scenes). For example, when cloning a repository, I'm prompted 5 times before the cloning actually begins.

Projects for which I'm using Svn directly don't do this. Is this expected? Is there anything I can do to cache my credentials?

Thanks.

+1  A: 

You should ask SVN to cache your credentials:

# $ svn update --username 'user2' --password 'password'
# [email protected]'s password:

However, as mentionned in the SO question Subversion ignoring “—password” and “—username” options, check what exactly is prompting you for a password.

VonC
Every indication I have (or understand, at least) is that Svn recognizes the password just fine. It's only when I use git-svn that I'm prompted. I can do svn operations all day long without having to enter my password.
Rob Wilkerson
+3  A: 

I ended up having to delete the auth directory all together and allow Subversion to rebuild it for me. Nothing else seemed to work. For anyone who doesn't know, the auth directory is in ~/.subversion (Mac/Linux).

Rob Wilkerson
Thank you for that follow-up. +1
VonC