From bdc90b4fdda7beb9d30fc5d06149aa25c53553ad Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 15 Jan 2025 14:39:24 +0100 Subject: just-import-git: Normalize 'subdir' path during repository rewrite --- bin/just-import-git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/just-import-git.py b/bin/just-import-git.py index 288ea35b..4a070445 100755 --- a/bin/just-import-git.py +++ b/bin/just-import-git.py @@ -268,8 +268,8 @@ def rewrite_repo(repo_spec: Json, repo = assign[repo] elif repo.get("type") == "file": changes = {} - subdir = repo.get("path", ".") - if subdir not in ["", "."]: + subdir: str = os.path.normpath(repo.get("path", ".")) + if subdir != ".": changes["subdir"] = subdir repo = dict(remote, **changes) elif repo.get("type") == "distdir": -- cgit v1.2.3