message: Fixing repository initialization.
diff: @@ -39,13 +39,14 @@ const getRepository = async (
  branch: string,
  destination: string,
  credCb: CredCb,
  -): Promise<Repository> => {
  +): Promise<Repository> =>
  + {
  try {
  // Get the repository if it already exists.
  - return Git.Repository.open(destination);
  + return await Git.Repository.open(destination);
  } catch (e) {
  // Repository doesn't exist locally yet. Clone it.
  - return Git.Clone.clone(url, destination, {
  + return await Git.Clone.clone(url, destination, {
  checkoutBranch: branch,
  fetchOpts: {
  callbacks: { certificateCheck: () => 1, credentials: credCb },
  @@ -88,7 +89,8 @@ const ensureRepository = async (
  branch: string,
  destination: string,
  credCb: CredCb,
  -): Promise<Repository> => {
  +): Promise<Repository> =>
  + {
  const repository = await getRepository(url, branch, destination, credCb);
  // Ensure that we are on the right branch.
  