Only pick executables that are files
What does this merge request do and why?
For macOS, having a /opt/homebrew/opt in the PATH would cause
the GDK to erroneously pick /opt/homebrew/opt/git as the binary
path. We can avoid this by ensuring that executable is a file, not
a directory.
How to set up and validate locally
- Run
export PATH=/opt/homebrew/opt:$PATH - Run
gdk reconfigure.
Merge request checklist
-
This change is backward compatible. If not, please include steps to communicate to our users. -
Tests added for new functionality. If not, please raise an issue to follow-up. -
Documentation added/updated, if needed. -
Announcement added, if change is notable. -
gdk doctortest added, if needed. -
Add the ~highlightlabel if this MR should be included in theCHANGELOG.md.
Edited by Stan Hu