Git svn https authentication

git-svn document says

- username = For the transport in which SVN processes authentication (http, https and plain svn), specify the username. For other transports (e.g. svn + ssh: //) you must specify the username in the URL, for example svn + ssh: // foo@svn.bar.com / project

However, on my computer (Windows 7, git version 1.9.4.msysgit.0), when I use

git svn clone https://server/svn/repo

First it asks for the password for my Windows username, and then (unsuccessfully, because the server uses svn auth) it asks for the server username and password. Everything is working fine.

The problem occurs when I try to clone another repo. Since this repo is only available to another user, I use the following command.

git svn clone https://server/svn/repo1 --username xxx

I expected him to ask for a password, but it is not. It just failed with error 403.

I also tried to clone the third repo available to both users, but I wanted to indicate that the user would be later.

git svn clone https://server/svn/repo2 --username xxx

Success without asking for a password. Because passwords are different, they must use the user's previous credentials.

Later I found out that I will use

git svn clone https://server/svn/repo2 --username=xxx

But it's still the same thing.

So it looks like he was --username=xxxnot doing anything. How to solve this problem?

+4
source share
1 answer

Thanks for the prompt Sergey. It really works after I flushed the subversion credential cache ( % HOMEPATH% \. Subversion \ auth \ svn.simple ).

, - , "--username" . , ?

+2

All Articles