From 294997fe2702a771f05cfdee1355c4c589b14aa1 Mon Sep 17 00:00:00 2001 From: Jali Date: Sun, 21 Sep 2025 00:56:00 +0200 Subject: [PATCH] Change into the directory before pulling --- services/git-monitor | 1 + 1 file changed, 1 insertion(+) diff --git a/services/git-monitor b/services/git-monitor index 1d211de..42a0a27 100755 --- a/services/git-monitor +++ b/services/git-monitor @@ -43,6 +43,7 @@ check_for_updates() { local current_commit_hash # Get the last known commit hash (from a file) + cd "$REPO_LOCAL_PATH/$REPO_NAME" if [ -f "$REPO_LOCAL_PATH/$repo_name/.git-monitor-last-commit" ]; then last_commit_hash=$(cat "$REPO_LOCAL_PATH/$repo_name/.git-monitor-last-commit") else