mercurial/url.py
changeset 15008 d0424f39984c
parent 14964 376c32a5ccdc
parent 15005 4a43e23b8c55
child 15027 1e45b92f4fb2
--- a/mercurial/url.py	Mon Aug 01 14:53:10 2011 -0500
+++ b/mercurial/url.py	Mon Aug 01 18:10:05 2011 -0500
@@ -25,7 +25,7 @@
             self._writedebug(user, passwd)
             return (user, passwd)
 
-        if not user:
+        if not user or not passwd:
             res = httpconnectionmod.readauthforuri(self.ui, authuri)
             if res:
                 group, auth = res