summaryrefslogtreecommitdiff
path: root/bin/just-import-git.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/just-import-git.py')
-rwxr-xr-xbin/just-import-git.py4
1 files changed, 2 insertions, 2 deletions
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":