private def fetchLatestCopyOfGitRepo()

in app/lib/RepoSnapshot.scala [115:123]


    private def fetchLatestCopyOfGitRepo()(implicit githubRepo: Repo): Future[Repository] = {
      Future {
        val repoId = githubRepo.repoId
        RepoUtil.getGitRepo(
          bot.workingDir.resolve(s"${repoId.owner}/${repoId.name}").toFile,
          githubRepo.clone_url,
          Some(bot.git))
      } andThen { case r => log(s"Git Repo ref count: ${r.map(_.getRefDatabase.getRefs.size)}") }
    }