Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! mingw: implement a platform-specific
strbuf_realpath()
Let's be careful to make this function work near the drive root: to resolve the drive root path itself, we _need_ a trailing backslash: if a file handle to the path `C:` is created, it does not actually refer to the drive root. Instead, it refers to this very Windows-only concept of a "per-drive current directory". This also requires the code that wants to re-append the last component to be more careful and only append a slash _if necessary_. This commit fixes the problem with `scalar unregister C:/foo` that was reported at #4200. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information