1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-07 07:02:53 +03:00

skip realpathing for prefetch on windows

Summary:
Relative paths can not be calculated between drives, so we should not realpath
here because we don't realpath elsewhere.

Reviewed By: MichaelCuevas

Differential Revision: D38378132

fbshipit-source-id: a20d5c5273a2d09166792fbb9862f67d8040fdd3
This commit is contained in:
Katie Mancini
2022-08-03 13:23:32 -07:00
committed by Facebook GitHub Bot
parent 344f230490
commit e35a78c764

View File

@@ -36,7 +36,7 @@ def find_eden_root(dirpath):
repo_type, repo_root = containing_repo_type(dirpath)
if repo_root is not None:
if os.path.exists(os.path.join(repo_root, ".eden", "config")):
return os.path.realpath(repo_root)
return repo_root
return None
try: