From ed78991edc4755c0276dcb4eb454b43fa38296fc Mon Sep 17 00:00:00 2001 From: dacctal Date: Fri, 3 Apr 2026 14:56:05 +0000 Subject: countless changes --- src/is_updated.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/is_updated.cc') 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 + +#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; } -- cgit v1.2.3