diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-31 12:52:33 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-31 13:15:06 +0200 |
commit | ed840173bf1baca199eced90ad5843eac200118c (patch) | |
tree | 7e6236292fec8c699265216f79aa93ca5fcf9770 /bin | |
parent | 86196afd3f90e0df2a3ee5c86977abffba6c5cfa (diff) | |
download | justbuild-ed840173bf1baca199eced90ad5843eac200118c.tar.gz |
just-mr.py: Fix wrong check added by type annotation changes
The checkout locations keys can, of course, include the empty
string, so key check should be explicitly typed.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/just-mr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/just-mr.py b/bin/just-mr.py index be845f83..b7a6162d 100755 --- a/bin/just-mr.py +++ b/bin/just-mr.py @@ -194,7 +194,7 @@ def read_config(configfile: str) -> Json: def git_root(*, upstream: Optional[str]) -> str: - if upstream and upstream in g_GIT_CHECKOUT_LOCATIONS: + if upstream is not None and upstream in g_GIT_CHECKOUT_LOCATIONS: return g_GIT_CHECKOUT_LOCATIONS[upstream] elif upstream and os.path.isabs(upstream) and os.path.isdir(upstream): return upstream |