I want to run git fetch on my source before building. I use a gradle Exec task for that. I have to unset GIT_SSH, because I don’t want, that git uses plink to fetch, but its own key provided by ssh-agent.
If I set an empty string, git fetch fails. If I set null, gradle crashes.
Is there a possibility to unset an env variable on a Exec task?