public async function genPull()

in src/shipit/repo/ShipItRepoGIT.php [498:517]


  public async function genPull(): Awaitable<void> {
    if (ShipItRepo::$verbose & ShipItRepo::VERBOSE_FETCH) {
      ShipItLogger::err("** Updating checkout in %s\n", $this->path);
    }

    try {
      await $this->genGitCommand('am', '--abort');
    } catch (ShipItShellCommandException $_e) {
      // ignore
    }

    await $this->genGitCommand('fetch', 'origin');
    try {
      await $this->genGitCommand('reset', '--hard', 'origin/'.$this->branch);
    } catch (ShipItShellCommandException $_) {
      // In the case we are using a raw SHA as a "branch", this will work
      // instead:
      await $this->genGitCommand('reset', '--hard', $this->branch);
    }
  }