pull method
Implementation
Future<void> pull({
required String gitDir,
required String remote,
required String branch,
Map<String, String>? environment,
bool includeParentEnvironment = true,
}) async {
final dir = checkDirectoryExists(gitDir, "gitDir");
final res = await runAsync(
[
"pull",
remote,
branch,
],
workingDirectory: dir.path,
environment: environment,
includeParentEnvironment: includeParentEnvironment,
);
if (0 != res.exitCode) {
throw CliResultException(
exitCode: res.exitCode,
stderr: res.stderr,
message: "Failed to pull updates from the branch '$branch' in the "
"remote '$remote' into the git directory at '$gitDir'",
);
}
}