Use the actual commit hash to identify the commit

This commit is contained in:
2025-09-21 01:56:36 +02:00
parent 9fd283fff2
commit 415ef4f865

View File

@@ -64,7 +64,7 @@ check_for_updates() {
fi fi
# Fetch the latest commit hash from the remote repository # 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 if [ -z "$last_commit_hash" ] || [ "$current_commit_hash" != "$last_commit_hash" ]; then
log_message "INFO" "New commits detected. Pulling..." log_message "INFO" "New commits detected. Pulling..."