There was an error while loading. Please reload this page.
1 parent 8433260 commit ecdce93Copy full SHA for ecdce93
1 file changed
git/util.py
@@ -326,7 +326,7 @@ def _is_path_rooted(path: PathLike) -> bool:
326
"""
327
drive, tail = osp.splitdrive(os.fspath(path))
328
separators = (os.sep,) if os.altsep is None else (os.sep, os.altsep)
329
- return tail.startswith(separators) or bool(drive) and osp.isabs(path)
+ return tail.startswith(separators) or drive.startswith(separators)
330
331
332
def _to_relative_path(root: PathLike, path: PathLike) -> str:
0 commit comments