I have an Android Studio project.
The repos I am using has a pre commit hook that runs a gradle command.
When I commit through Fork it fails because JAVA_HOME is not set and therefore picking up the incorrect java version, and no environment variables are not set.
My Fork terminal client is set to terminal, and I can see the correct JAVA_HOME and environment variables if I run a terminal. It seems that Fork is not picking them up.
If I open a terminal and then run open -a "Fork" then it works fine.