windows: use abspath in the git extension
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 10 Jul 2021 14:07:02 +0200
changeset 47631 16bae8abcc03
parent 47630 8e5192e41e0b
child 47632 3b2d080f11b5
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
hgext/git/__init__.py
--- 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