initLocalAndRemoteGit function

Future<(Directory, Directory)> initLocalAndRemoteGit()

Creates a local and a remote git repository and connects them

Implementation

Future<(Directory local, Directory remote)> initLocalAndRemoteGit() async {
  final local = await initTestDir();
  await initLocalGit(local);

  final remote = await initTestDir();
  await initRemoteGit(remote);
  await addRemoteToLocal(local: local, remote: remote);
  return (local, remote);
}