openWorking method
Opens path and returns it as a GitWorkingRepository.
Fails with GitNotAWorkingRepositoryException when the repository is
bare, and with GitNotARepositoryException when path is not a
repository at all.
Implementation
@override
Future<GitWorkingRepository> openWorking(String path) async {
final ProcessGitRepository repository = await _open(path);
if (repository is ProcessGitWorkingRepository) {
return repository;
}
throw GitNotAWorkingRepositoryException(path);
}