# HG changeset patch # User Pierre-Yves David # Date 2021-07-10 12:07:25 # Node ID 770fd64a63e0b8f90ad5de2334434543ce7a26d2 # Parent 3b2d080f11b55491c4add050d0b0ffa5d9fa96a8 windows: use abspath in convert.git We replace `os.path.abspath` with `util.abspath`. This should solve more "drive capitalization" issue on Windows. Differential Revision: https://phab.mercurial-scm.org/D11070 diff --git a/hgext/convert/git.py b/hgext/convert/git.py --- a/hgext/convert/git.py +++ b/hgext/convert/git.py @@ -14,6 +14,7 @@ from mercurial import ( config, error, pycompat, + util, ) from . import common @@ -74,7 +75,7 @@ class convert_git(common.converter_sourc # Pass an absolute path to git to prevent from ever being interpreted # as a URL - path = os.path.abspath(path) + path = util.abspath(path) if os.path.isdir(path + b"/.git"): path += b"/.git"