changeset 47631:16bae8abcc03

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 10 Jul 2021 14:07:02 +0200
parents 8e5192e41e0b
children 3b2d080f11b5
files hgext/git/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/git/__init__.py	Sat Jul 10 14:06:46 2021 +0200
+++ b/hgext/git/__init__.py	Sat Jul 10 14:07:02 2021 +0200
@@ -284,7 +284,7 @@
 
 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