diff options
Diffstat (limited to 'bin/just-lock.py')
-rwxr-xr-x | bin/just-lock.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/just-lock.py b/bin/just-lock.py index 56ebe385..30cfb978 100755 --- a/bin/just-lock.py +++ b/bin/just-lock.py @@ -1962,13 +1962,13 @@ def rewrite_cloned_repo(repos: Json, *, clone_to: str, target_repo: str, } } - # Keep any existing "special" or "to_git" pragmas from the workspace root - # repository + # Keep relevant pragmas from the workspace root repository pragma: Json = {} existing: Json = repos[ws_root_repo]["repository"].get("pragma", {}) - special = existing.get("special", None) - if special: - pragma["special"] = special + if ws_root_desc["repository"]["type"] not in ["archive", "zip"]: + special = existing.get("special", None) + if special: + pragma["special"] = special to_git = existing.get("to_git", False) if to_git: pragma["to_git"] = True |