Error Message 'Username Use of uninitialized value username in chomp' Due to System Git

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When using the system provided git rather than the SourceTree embedded git with an HTTS Subversion URL, the following error is thrown:

Authentication realm: <https://hostname:443> Subversion access check Username: Use of uninitialized value $username in chomp at /usr/local/git/libexec/git-core/git-svn line 3997

Cause

The standard git-svn is not capable of authenticating using the Keychain on Mac OS X, even though the default Subversion configuration is to use this method of storing passwords. 

Workaround

  1. Use the embedded SourceTree version of git (see Preferences > Git). Or
  2. Modify the system git like this:
diff --git a/git-svn b/git-svn 
index 0fd2fd2..3f7c3c8 100755 
--- a/git-svn 
+++ b/git-svn 
@@ -4930,6 +4930,9 @@ BEGIN { 
 sub _auth_providers () { 
 [ 
+ $SVN::Core::VERSION lt '1.6' ? () : 
+ @{SVN::Core::auth_get_platform_specific_client_providers( 
+ undef,undef)}, 
 SVN::Client::get_simple_provider(), 
 SVN::Client::get_ssl_server_trust_file_provider(), 
 SVN::Client::get_simple_prompt_provider(
 

(info) This is a text Perl file

Help us improve!

Unknown macro: {kbsurvey}
Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.