Thread (7 messages) flat view 7 messages, 6 authors, 2016-06-15

Re: git-svn won't remember pem password

From: Jeff King <hidden>
Date: 2016-06-15 22:53:06

On Sat, Feb 18, 2012 at 03:30:00AM -0800, Jakub Narebski wrote:
Igor [off-list ref] writes:
quoted
I'm running into an issue where I have to enter my pem certificate
password every time I git-svn fetch or git-svn dcommit. Vanilla svn
uses OS X KeyChain and remembers my password just fine. Is there a
known solution for this? Other users have ran into same issue as
described here:

  http://stackoverflow.com/questions/605519/does-git-svn-store-svn-passwords
quoted
However, that solution of removing .subversion folder did not work
for me.
I don't know if it is svn that has to remember password, or git that
has to remember password.  Git 1.7.9 learned "credentials API" that
allows integration with platform native keychain mechanisms, and I
think OS X Keychain is one of examples / supported platforms (but it
might not made it into core git)... though I am not sure if it affects
git-svn, or only HTTP(S) transport.
It does not affect git-svn currently.

I have some thoughts on providing access to the credentials API for
scripts like git-svn (right now, it is accessible only by C git
programs). However, there is an important question: should password
prompting in git-svn behave like git, or behave like svn?

So far, it has been the latter, and I think that is reasonable. The
resource that requires the credentials is an svn repo, not a git repo,
so you are more likely to want to share credentials for it with real
svn, and not other git commands.

As to the lack of keychain support, it looks like libsvn should be
handling this for us. We simply give it a callback function that gets
called if the user needs prompted, but I would think things like the
keychain handling would happen before it gets to our prompt (and if I
understand it, for _some_ credential storage formats, it does). So
either there is a bug in libsvn, or we are somehow invoking it
incorrectly.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help