Fix git worktree root normalization

This commit is contained in:
Bohdan Triapitsyn
2026-06-14 01:07:11 +03:00
parent fa128afdb5
commit 2538a08370
2 changed files with 44 additions and 0 deletions
+8
View File
@@ -348,6 +348,14 @@ const normalizeDirectoryPath = (value) => {
return trimmed;
};
const normalizePath = (value) => {
const normalized = normalizeDirectoryPath(value);
if (typeof normalized !== 'string') {
return normalized;
}
return normalized.replace(/\\/g, '/');
};
const getGitIndexMutationQueueKey = (directory) => {
const normalized = normalizeDirectoryPath(directory);
if (!normalized) {