bisect-kit: fix a bug in PatchGitConfig

The returned object of the context manager is to be used as a dict like
with PatchGitConfig() as new_env:
        if 'env' in kwargs:
            new_env = kwargs['env'] | new_env
If __enter__ return None, the | operator would fail
TypeError: unsupported operand type(s) for |: 'dict' and 'NoneType'

TEST=manual && &&

Change-Id: I50a896f1607693055755bbf0edb13d5125b5049a
Reviewed-by: MD Nayeem Jahan Rafi <>
Commit-Queue: Cheng-Yu Lee <>
Tested-by: Cheng-Yu Lee <>
1 file changed