discover


Description:

public static File? discover (File location) throws Error

Looks for a git repository.

The lookup starts from path and walks up the parent directories and stops when a repository is found.

Parameters:

location

the base location where the lookup starts.

Returns:

the repository location.