diff options
| author | dacctal <dacctalyt@gmail.com> | 2026-04-03 14:56:05 +0000 |
|---|---|---|
| committer | dacctal <dacctalyt@gmail.com> | 2026-04-03 14:56:05 +0000 |
| commit | ed78991edc4755c0276dcb4eb454b43fa38296fc (patch) | |
| tree | 460da5399e34e1dce7a293cb22578da15977d895 /src/is_updated.cc | |
| parent | 2a6b92ed130ade1ea7542ee210e6957427a0aa81 (diff) | |
countless changes
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; } |
