pushLocalChanges function

Future<void> pushLocalChanges(
  1. Directory d
)

Adds and pushes local changes

Implementation

Future<void> pushLocalChanges(Directory d) async {
  // Add local changes
  final result0 = await Process.run('git', [
    'add',
    '.',
  ], workingDirectory: d.path);

  _throw('Could not add local changes', result0);

  final result1 = await Process.run('git', ['push'], workingDirectory: d.path);

  _throw('Could not push local changes', result1);
}