I'm trying to write a gradle script that references the local git repository on all the user (development) machines. I have it working with my hardcoded local directory name. However, all the developers put their local repositories in a place of their own liking - this often varies between the Windows and Mac developers too!
Since I am in Groovy in the gradle script it would be simple for me to execute a local git command to get the directory where the local repository is stored. Is there such an command?