Git svn failure leads to authentication error

I am trying to do all my branching and merging through git-svn , however I hung up the branching in subversion.

Our administrator tells me that I have full read and write permissions to the repo and I CAN retrieve the latest code.

For the test, I deleted the ~/.subversion/svn.simple and ran it.

 04:13 pm [214423L] C:\Dev\MyFooApp.Bar [master] $ git svn fetch Authentication realm: <https://code:443> VisualSVN Server Password for 'cflorell': {my password} 04:14 pm [214423L] C:\Dev\MyFooApp.Bar [master] $ git svn fetch 04:14 pm [214423L] C:\Dev\MyFooApp.Bar [master] $ 

Also, if I clone a repo using Tortoise and then create a branch using svn , it works.

 04:43 pm [214423L] C:\Dev\MyFooApp.Bar $ svn copy https://code/svn/MyFooApp.Bar/trunk https://code/svn/MyFooApp.Bar/branches/test-branch -m "test branch" Committing transaction... Committed revision 93. 

But when trying to create a branch using git-svn it still says that my auth is invalid.

 04:14 pm [214423L] C:\Dev\MyFooApp.Bar [master] $ git svn branch develop Copying https://code/svn/MyFooApp.Bar/trunk at r92 to https://code/svn/MyFooApp.Bar/branches/develop... Authentication failed: Unable to connect to a repository at URL 'https://code/svn/MyFooApp.Bar/trunk': No more credentials or we tried too many times. Authentication failed at C:\Program Files\Git\mingw64/libexec/git-core\git-svn line 1196. 04:14 pm [214423L] C:\Dev\MyFooApp.Bar [master] $ 

My config file, I think is correct.

 [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly [svn-remote "svn"] url = https://code/svn/MyFooApp.Bar fetch = trunk:refs/remotes/svn/trunk branches = branches/*:refs/remotes/svn/* tags = tags/*:refs/remotes/svn/tags/* 

Where can I go wrong with all this?

+8
git-svn
source share
3 answers

Please note that more than a year later (March 2017) of Git 2.13+ (Q2 2017), the git svn authentication problem should be avoided.

See commit e0688e9 (March 6, 2017) by Hiroshi Shirosaki .

It recognizes that authentication fails with svn branch error, while svn rebase and svn dcommit work fine without authentication errors.

 $ git svn branch v7_3 Copying https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx at r27519 to https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/v7_3... Can't create session: Unable to connect to a repository at URL 'https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx': No more credentials or we tried too many times. Authentication failed at C:\Program Files\Git\mingw64/libexec/git-core\git-svn line 1200. 

We added the auth configuration to SVN::Client->new() to fix the problem.

+4
source share

So it looks like there is a conflict between Tortoise SVN and git-svn, I'm not sure if this exists in other versions of SVN or not, but I uninstalled Tortoise SVN and then was able to go with git svn branch branchName

 C:\Files\Source\Repos\applications\core\App01>git svn branch branchName Copying http://url/svn/company/applications/core/App01/trunk at r7071 to http://url/svn/company/applications/core/App01/ branches/branchName... Found possible branch point: http://url/svn/company/applications/core/App01/trunk => http://url/svn/company/applications/core/App01/branches/branchName, 7071 Found branch parent: (refs/remotes/origin/branchName) f8ba2fd450c30d4812b7549217eae1b2d5c7dd00 Following parent with do_switch Successfully followed parent r15037 = 52dd759833fd89c7be03f89093aba38090b3288f (refs/remotes/origin/branchName) C:\Files\Source\Repos\applications\core\App01> 

Switch to another SVN browser for a while and find out if there is a problem.

+2
source share

According to https://gist.github.com/kasparsd/3749872/563011118e33900b3a0ca89ec37f3c99be8e9c49 , there is no way to authenticate using the git svn tag (used to work, but stops working).

Use svn instead to send the tag:

 svn cp <trunk-ul> <tag-url> -m "creating tag xx" 

He will ask you to save your password in text form.

0
source share

All Articles