Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ private static bool ContextMenu_CanLock()

var alreadyLocked = locks.Any(x =>
{
return repositoryPath == x.Path;
return repositoryPath == x.Path.ToNPath();

});
GitFileStatus status = GitFileStatus.None;
if (entries != null)
{
status = entries.FirstOrDefault(x => repositoryPath == x.Path).Status;
status = entries.FirstOrDefault(x => repositoryPath == x.Path.ToNPath()).Status;
}
return !alreadyLocked && status != GitFileStatus.Untracked && status != GitFileStatus.Ignored;
}
Expand Down Expand Up @@ -100,7 +100,7 @@ private static bool ContextMenu_CanUnlock()
NPath assetPath = AssetDatabase.GetAssetPath(selected.GetInstanceID()).ToNPath();
NPath repositoryPath = EntryPoint.Environment.GetRepositoryPath(assetPath);

var isLocked = locks.Any(x => repositoryPath == x.Path);
var isLocked = locks.Any(x => repositoryPath == x.Path.ToNPath());
return isLocked;
}

Expand Down