summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-04-19 15:25:53 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-04-19 15:25:53 +0200
commitdb07e1adbb7f8758e1da04e8b48dd9587c2573ef (patch)
treec7e40d7da5698c4291087e6e3c46df288cc892fe
parent108220af1ac58be6cc80c80c70bc3f6823118a0a (diff)
downloadjustbuild-db07e1adbb7f8758e1da04e8b48dd9587c2573ef.tar.gz
just-mr: Refer to ROOT via absolute path
... so accessing the CAS from a different cwd wont fail if the local_build_root was provided as relative path.
-rwxr-xr-xbin/just-mr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/just-mr.py b/bin/just-mr.py
index f010fec9..2c2a08b3 100755
--- a/bin/just-mr.py
+++ b/bin/just-mr.py
@@ -495,6 +495,7 @@ def main():
config = read_config(options.repository_config)
global ROOT
ROOT = options.local_build_root or os.path.join(Path.home(), ".cache/just")
+ ROOT = ROOT if os.path.isabs(ROOT) else os.path.abspath(ROOT)
global GIT_CHECKOUT_LOCATIONS
if options.checkout_location:
with open(options.checkout_location) as f: