From 415ef4f8656520d41904a75ae82f8de6efad7349 Mon Sep 17 00:00:00 2001 From: Jali Date: Sun, 21 Sep 2025 01:56:36 +0200 Subject: [PATCH] Use the actual commit hash to identify the commit --- services/git-monitor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/git-monitor b/services/git-monitor index faa83dd..49065f3 100755 --- a/services/git-monitor +++ b/services/git-monitor @@ -64,7 +64,7 @@ check_for_updates() { fi # Fetch the latest commit hash from the remote repository - current_commit_hash=$(git -C "$REPO_LOCAL_PATH/$repo_name" branch --format '%(sha)') + current_commit_hash=$(git -C "$REPO_LOCAL_PATH/$repo_name" rev-parse HEAD) if [ -z "$last_commit_hash" ] || [ "$current_commit_hash" != "$last_commit_hash" ]; then log_message "INFO" "New commits detected. Pulling..."