diff options
-rwxr-xr-x | bin/just-import-git.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/just-import-git.py b/bin/just-import-git.py index 000d2f33..9b9f1023 100755 --- a/bin/just-import-git.py +++ b/bin/just-import-git.py @@ -204,6 +204,9 @@ def rewrite_repo(repo_spec, *, remote, assign): if subdir not in ["", "."]: changes["subdir"] = subdir repo = dict(remote, **changes) + elif repo.get("type") == "distdir": + new_repos = [assign[k] for k in repo.get("repositories", [])] + repo = dict(repo, **{"repositories": new_repos}) new_spec["repository"] = repo for key in ["target_root", "rule_root", "expression_root"]: if key in repo_spec: |