fix subst drive paths on Windows - #126
Conversation
|
Unfortunately, |
Retain the opened file name, canonicalize parent directories only when Git reports a different root, and exercise subst drive mapping on Windows CI.
155f352 to
4cd4de7
Compare
|
Made a change so that the path calculation keeps the opened filename and only canonicalizes parent directories when the file cannot be made relative to Git’s reported root (such as a Windows Added regression coverage for file symlinks and directory aliases, plus a Windows Actions job that creates an actual |
On Windows, if you use subst to create a new drive from a subpath of another drive, some software resolves paths back to the previous drive and others don't.
Sublime doesn't, but git does, it appears.
Eg:
D:\development\my_repo\architecture\models.pyin Sublime gets turned intoC:\d_drive\development\my_repo\architecture\models.pyby git. To be more correct, runninggit rev-parse --show-toplevelreturnsC:\d_drive\development\my_repowhich is clearly NOT a prefix ofD:\development\my_repo\architecture\models.pyand this breaks the relative file path calc in theRemoteUrlCommands.