Specific exception when not inside a git repository

An InvalidOperationException is thrown when the startingPath is not inside a git repository