getRepo function

Locate the git repository where a file is tracked