mercurial/httprepo.py
changeset 5196 86e95b93559a
parent 5183 664a1c312972
parent 5193 942c0827dc5b
child 5254 b534c502bfb3
--- a/mercurial/httprepo.py
+++ b/mercurial/httprepo.py
@@ -253,7 +253,7 @@ class httprepository(remoterepository):
         if user:
             ui.debug(_('http auth: user %s, password %s\n') %
                      (user, passwd and '*' * len(passwd) or 'not set'))
-            passmgr.add_password(None, host, user, passwd or '')
+            passmgr.add_password(None, self._url, user, passwd or '')
 
         handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr),
                          httpdigestauthhandler(passmgr)))