mercurial/dispatch.py
changeset 28081 a6344df5108e
parent 27679 6822f9382b4c
child 28263 59509c6724c7
--- a/mercurial/dispatch.py	Thu Feb 11 22:52:23 2016 -0800
+++ b/mercurial/dispatch.py	Mon Feb 08 15:35:30 2016 -0800
@@ -609,7 +609,8 @@
 
     for cfg in config:
         try:
-            name, value = cfg.split('=', 1)
+            name, value = [cfgelem.strip()
+                           for cfgelem in cfg.split('=', 1)]
             section, name = name.split('.', 1)
             if not section or not name:
                 raise IndexError