Mercurial > hg-stable
changeset 47633:770fd64a63e0
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 10 Jul 2021 14:07:25 +0200 |
parents | 3b2d080f11b5 |
children | 352ada3aab70 |
files | hgext/convert/git.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/git.py Sat Jul 10 14:07:14 2021 +0200 +++ b/hgext/convert/git.py Sat Jul 10 14:07:25 2021 +0200 @@ -14,6 +14,7 @@ config, error, pycompat, + util, ) from . import common @@ -74,7 +75,7 @@ # 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"