#2401·MiMo-Code

Windows 中的 isolated-git-guard 在跨盘符路径下错误地将所有非 C 盘项目视为隔离子会话(包含相对跨盘符的缺陷)

作者: AlvisS66创建于 2026年9月16日更新于 2026年9月16日

The contains() function in the path module uses the relative() function to determine whether two paths are contained in each other. The relative() function returns the relative path of the second path from the first path. On Windows, the relative() function cannot be used to calculate the relative path of a path that is not on the same drive as the first path, and it returns the absolute path of the second path. This behavior is different from the posix behavior, where the relative() function always returns a relative path.

内容来源: XiaomiMiMo/MiMo-Code