diff --git a/omegaconf/config.py b/omegaconf/config.py
index 6b53109..3c80734 100644
--- a/omegaconf/config.py
+++ b/omegaconf/config.py
@@ -244,12 +244,15 @@ class Config(object):
 
     def merge_with_dotlist(self, dotlist):
         for arg in dotlist:
-            args = arg.split("=")
-            key = args[0]
-            value = None
-            if len(args) > 1:
-                # load with yaml to get correct automatic typing with the same rules as yaml parsing
-                value = yaml.load(args[1], Loader=get_yaml_loader())
+            idx = arg.find("=")
+            if idx == -1:
+                key = arg
+                value = None
+            else:
+                key = arg[0:idx]
+                value = arg[idx + 1 :]
+                value = yaml.load(value, Loader=get_yaml_loader())
+
             self.update(key, value)
 
     def update(self, key, value=None):

Handle dotlist override with values containing =
See https://github.com/facebookresearch/hydra/issues/266 (Which is actually one bug in Hydra and one in OmegaConf).
diff --git a/tests/test_update.py b/tests/test_update.py
index 0ade637..12fcacf 100644
--- a/tests/test_update.py
+++ b/tests/test_update.py
@@ -1,5 +1,6 @@
 import sys
 
+import pytest
 from pytest import raises
 
 from omegaconf import MissingMandatoryValue
@@ -154,10 +155,18 @@ def test_update_list_make_dict():
     assert c[1].b.b == "bb"
 
 
-def test_merge_with_dotlist():
-    c = OmegaConf.create([1, 2, 3])
-    c.merge_with_dotlist(["0=bar", "2.a=100"])
-    assert c == ["bar", 2, dict(a=100)]
+@pytest.mark.parametrize(
+    "cfg,overrides,expected",
+    [
+        ([1, 2, 3], ["0=bar", "2.a=100"], ["bar", 2, dict(a=100)]),
+        ({}, ["foo=bar", "bar=100"], {"foo": "bar", "bar": 100}),
+        ({}, ["foo=bar=10"], {"foo": "bar=10"}),
+    ],
+)
+def test_merge_with_dotlist(cfg, overrides, expected):
+    c = OmegaConf.create(cfg)
+    c.merge_with_dotlist(overrides)
+    assert c == expected
 
 
 def test_merge_with_cli():

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
argcomplete==1.12.3
attrs==22.2.0
black==22.8.0
bleach==4.1.0
certifi==2021.5.30
cffi==1.15.1
cfgv==3.3.1
charset-normalizer==2.0.12
click==8.0.4
colorama==0.4.5
colorlog==6.9.0
coverage==6.2
coveralls==3.3.1
cryptography==40.0.2
dataclasses==0.8
distlib==0.3.9
docopt==0.6.2
docutils==0.18.1
execnet==1.9.0
filelock==3.4.1
flake8==5.0.4
identify==2.4.4
idna==3.10
importlib-metadata==4.2.0
importlib-resources==5.2.3
iniconfig==1.1.1
jeepney==0.7.1
keyring==23.4.1
mccabe==0.7.0
mypy-extensions==1.0.0
nodeenv==1.6.0
nox==2022.1.7
-e git+https://github.com/omry/omegaconf.git@db6f59569e541db940b8042e82b97b572138b031#egg=omegaconf
packaging==21.3
pathspec==0.9.0
pkginfo==1.10.0
platformdirs==2.4.0
pluggy==1.0.0
pre-commit==2.17.0
py==1.11.0
pycodestyle==2.9.1
pycparser==2.21
pyflakes==2.5.0
Pygments==2.14.0
pyparsing==3.1.4
pytest==7.0.1
pytest-asyncio==0.16.0
pytest-cov==4.0.0
pytest-mock==3.6.1
pytest-xdist==3.0.2
PyYAML==6.0.1
readme-renderer==34.0
requests==2.27.1
requests-toolbelt==1.0.0
rfc3986==1.5.0
SecretStorage==3.3.3
six==1.17.0
toml==0.10.2
tomli==1.2.3
tqdm==4.64.1
twine==3.8.0
typed-ast==1.5.5
typing_extensions==4.1.1
urllib3==1.26.20
virtualenv==20.16.2
webencodings==0.5.1
zipp==3.6.0

name: omegaconf
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - argcomplete==1.12.3
      - attrs==22.2.0
      - black==22.8.0
      - bleach==4.1.0
      - cffi==1.15.1
      - cfgv==3.3.1
      - charset-normalizer==2.0.12
      - click==8.0.4
      - colorama==0.4.5
      - colorlog==6.9.0
      - coverage==6.2
      - coveralls==3.3.1
      - cryptography==40.0.2
      - dataclasses==0.8
      - distlib==0.3.9
      - docopt==0.6.2
      - docutils==0.18.1
      - execnet==1.9.0
      - filelock==3.4.1
      - flake8==5.0.4
      - identify==2.4.4
      - idna==3.10
      - importlib-metadata==4.2.0
      - importlib-resources==5.2.3
      - iniconfig==1.1.1
      - jeepney==0.7.1
      - keyring==23.4.1
      - mccabe==0.7.0
      - mypy-extensions==1.0.0
      - nodeenv==1.6.0
      - nox==2022.1.7
      - packaging==21.3
      - pathspec==0.9.0
      - pkginfo==1.10.0
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - pre-commit==2.17.0
      - py==1.11.0
      - pycodestyle==2.9.1
      - pycparser==2.21
      - pyflakes==2.5.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-asyncio==0.16.0
      - pytest-cov==4.0.0
      - pytest-mock==3.6.1
      - pytest-xdist==3.0.2
      - pyyaml==6.0.1
      - readme-renderer==34.0
      - requests==2.27.1
      - requests-toolbelt==1.0.0
      - rfc3986==1.5.0
      - secretstorage==3.3.3
      - six==1.17.0
      - toml==0.10.2
      - tomli==1.2.3
      - tqdm==4.64.1
      - twine==3.8.0
      - typed-ast==1.5.5
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - virtualenv==20.16.2
      - webencodings==0.5.1
      - zipp==3.6.0
prefix: /opt/conda/envs/omegaconf

tests/test_update.py::test_merge_with_dotlist[cfg2-overrides2-expected2]
tests/test_update.py::test_update_map_value tests/test_update.py::test_update_map_new_keyvalue tests/test_update.py::test_update_map_to_value tests/test_update.py::test_update_with_empty_map_value tests/test_update.py::test_update_with_map_value tests/test_update.py::test_update_deep_from_empty tests/test_update.py::test_update_deep_with_map tests/test_update.py::test_update_deep_with_value tests/test_update.py::test_update_deep_with_map2 tests/test_update.py::test_update_deep_with_map_update tests/test_update.py::test_list_value_update tests/test_update.py::test_override_mandatory_value tests/test_update.py::test_update_empty_to_value tests/test_update.py::test_update_same_value tests/test_update.py::test_update_value_to_map tests/test_update.py::test_update_map_empty_to_map tests/test_update.py::test_update_list tests/test_update.py::test_update_nested_list tests/test_update.py::test_update_list_make_dict tests/test_update.py::test_merge_with_dotlist[cfg0-overrides0-expected0] tests/test_update.py::test_merge_with_dotlist[cfg1-overrides1-expected1] tests/test_update.py::test_merge_with_cli
omegaconf/config.py
omegaconf/config.py