diff options
Diffstat (limited to 'src/is_updated.cc')
| -rw-r--r-- | src/is_updated.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/is_updated.cc b/src/is_updated.cc index 96c7fe6..f166dd8 100644 --- a/src/is_updated.cc +++ b/src/is_updated.cc @@ -1,6 +1,12 @@ -#include "cmd_out.cc" +#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; } |
