Skip to content

Commit

Permalink
[lit] allow find git usr bin in path directly. (microsoft#5385)
Browse files Browse the repository at this point in the history
This is for case where git usr bin is not in winreg.
  • Loading branch information
python3kgae authored Jul 3, 2023
1 parent a64a768 commit 1775fff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/lit/lit/TestingConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def fromdefaults(litConfig):
if sys.platform == 'win32':
required_tools = [
'cmp.exe', 'grep.exe', 'sed.exe', 'diff.exe', 'echo.exe', 'ls.exe']
path = _find_git_windows_unix_tools(required_tools)
path = lit.util.whichTools(required_tools, all_path)
if path is None:
path = _find_git_windows_unix_tools(required_tools)

all_path = f"{path};{all_path}"
environment = {
'PATH' : all_path,
Expand Down

0 comments on commit 1775fff

Please sign in to comment.