git svn: password for svn is not stored

拜拜、爱过 提交于 2020-01-14 08:46:07

问题


I'm using git against a central remote svn repository using 'git-svn'. The SVN repository uses https with a self-signed certificate. Everything works fine, with one nasty exception. As long as I use directly with svn, the password is remembered, so it has to by typed only on the first command.

When using git-svn operations (e.g. dcommit, rebase), the password is no longer remembered and manual input is required. After a git-svn oparation, direct svn commands do no longer remember the password too, also prompting each time.

What's going on here? Any hints?

My environment: Ubuntu 10.04 64 bit, git-core and git-svn 1.7.0.4-1


回答1:


I have a similar usage scenario (svn over https, password, using git for a local repository and push/pull to the svn server), however I haven't encountered this issue you are mentioning.

One difference I see is that I set subversion to save my password and not to ask it every time. You could try that to see if it works.

And I see a similar question here, it seems that wiping the whole ~/.subversion directory helped (make sure you have a backup of the directory if you try that)




回答2:


In my case git-svn asked for password every time since our infra dept set windows HOME environment variable to network disk recently.

My recommendation for diagnosing of this is to download sysinternals procmon and filter out everything but perl process and path containing "subversion" string. After that you can see what is happening



来源:https://stackoverflow.com/questions/3127097/git-svn-password-for-svn-is-not-stored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!