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
--- 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