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..."