Skip to content
Snippets Groups Projects
Commit 770fd64a authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

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
parent 3b2d080f
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment