aboutsummaryrefslogtreecommitdiff
path: root/src/is_updated.cc
blob: f166dd87d6e28afc5e0992ff6f7c54e12b1b1a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <filesystem>

#include "is_updated.hh"
#include "cmd_out.hh"

bool is_updated(std::string src) {
  if (src != std::filesystem::current_path().string()) {
    std::filesystem::current_path(src);
  }
  if (cmd_out("git pull") == "Already up to date.") { return true; }
  return false;
}