Find the location of the git repository directly in directory or in any of its parent directories.
directory