Skip to content

Commit 82a0d9e

Browse files
committed
fix(windows): fix remaining str(repo/fp) → .as_posix() in R and C cases
The previous fix missed the renamed (R) and copied (C) diff status branches which used old_fp/new_fp variable names instead of fp.
1 parent e0e291e commit 82a0d9e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/dirplot/git_scanner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@ def git_apply_diff(
158158
old_fp, new_fp = path_list[0], path_list[1]
159159
if old_fp.split("/")[0] not in exclude:
160160
to_delete.append(old_fp)
161-
highlights[str(repo / old_fp)] = "deleted"
161+
highlights[(repo / old_fp).as_posix()] = "deleted"
162162
if new_fp.split("/")[0] not in exclude:
163163
to_add[new_fp] = new_hash
164-
highlights[str(repo / new_fp)] = "created"
164+
highlights[(repo / new_fp).as_posix()] = "created"
165165
elif status.startswith("C") and len(path_list) >= 2:
166166
new_fp = path_list[1]
167167
if new_fp.split("/")[0] not in exclude:
168168
to_add[new_fp] = new_hash
169-
highlights[str(repo / new_fp)] = "created"
169+
highlights[(repo / new_fp).as_posix()] = "created"
170170

171171
# Fetch all new blob sizes in one batch call.
172172
if to_add:

0 commit comments

Comments
 (0)