| Index: scm.py
|
| diff --git a/scm.py b/scm.py
|
| index 94b925e87d0abf14762462607221a88f51316214..7d7554907177b51731c95c3ae180778fe37ede8b 100644
|
| --- a/scm.py
|
| +++ b/scm.py
|
| @@ -1040,10 +1040,10 @@ class SVN(object):
|
| auth_dir = os.path.join(os.environ['APPDATA'], 'Subversion', 'auth',
|
| 'svn.simple')
|
| else:
|
| - if not 'HOME' in os.environ:
|
| + auth_dir = os.path.expanduser(
|
| + os.path.join('~', '.subversion', 'auth', 'svn.simple'))
|
| + if not os.path.exists(auth_dir):
|
| return None
|
| - auth_dir = os.path.join(os.environ['HOME'], '.subversion', 'auth',
|
| - 'svn.simple')
|
| for credfile in os.listdir(auth_dir):
|
| cred_info = SVN.ReadSimpleAuth(os.path.join(auth_dir, credfile))
|
| if regexp.match(cred_info.get('svn:realmstring')):
|
|
|