# HG changeset patch # User Pierre-Yves David # Date 2021-07-10 12:07:02 # Node ID 16bae8abcc03e590bebc28a248b0da21c7be38d2 # Parent 8e5192e41e0b4d97d9f22bfbcad7fdd9f301c97b windows: use abspath in the git extension We replace `os.path.abspath` with `util.abspath`. This should solve more "drive capitalization" issue on Windows. Differential Revision: https://phab.mercurial-scm.org/D11068 diff --git a/hgext/git/__init__.py b/hgext/git/__init__.py --- a/hgext/git/__init__.py +++ b/hgext/git/__init__.py @@ -284,7 +284,7 @@ class gitbmstore(object): def init(orig, ui, dest=b'.', **opts): if opts.get('git', False): - path = os.path.abspath(dest) + path = util.abspath(dest) # TODO: walk up looking for the git repo _setupdothg(ui, path) return 0