“We will defend Aleppo: all of Turkey stands behind its defenders” — Turkish Prime Minister Ahmet Davutoglu, Feb. 10.

“Turkey and Saudi Arabia may launch an operation (into Syria) by land” — Turkish Foreign Minister Mehmed Cavusoglu, Feb. 13.

“There is no thought of Turkish soldiers entering Syria” — Turkish Defense Minister Ismet Yilmaz, Feb. 14.

Between Wednesday of last week and Sunday night, the Turkish government, in league with Saudi Arabia, made a tentative decision to enter the war on the ground in Syria — and then got cold feet about it. Or more likely, the Turkish Army simply told the government that it would not invade Syria and risk the possibility of a shooting war with the Russians.

The Turkish government bears a large share of the responsibility for the devastating Syrian civil war. From the start Turkey’s leader, Recep Tayyib Erdogan, was publicly committed to overthrowing the Syrian regime of Bashar Assad. For five years he kept Turkey’s border with Syria open so that arms, money and volunteers could flow across to feed the rebellion.

Erdogan’s hatred of Assad is rooted in the fact that he is a militant Sunni Muslim while Assad leads a regime dominated by Shiite Muslims. Both men rule countries that are officially secular, but Erdogan’s long-term goal is to impose Islamic religious rule on Turkey. Assad is defending the multi-ethnic, multi-faith traditional character of Syrian society — while also running a brutally repressive regime. Neither man gives a fig for democracy.

Saudi Arabia has been Erdogan’s main ally in the task of turning Syria into a Sunni-ruled Islamic state (although 30 percent of Syrians are not Sunni Muslims). Together these countries and some smaller Gulf states subverted the original non-violent movement in Syria that was demanding a secular democracy, and then armed and supplied the Sunni-dominated armed rebellion that replaced it.

The U.S. government also wanted to see Assad’s regime destroyed (for strategic reasons, not religious ones). So for years Washington turned a blind eye to the fact that its allies, Turkey and Saudi Arabia, were actually supporting the extremists of the Islamic State group and the Nusra Front, al-Qaida’s franchise in Syria.

Largely as a result of that support, these two extremist organizations now completely dominate the Syrian revolt against Assad’s rule, accounting for 80-90 percent of the active fighters. Turkey and Saudi Arabia finally broke their ties with Islamic State last year, but they still back the Nusra Front, which has camouflaged itself behind an array of minor “moderate” groups in the so-called “Army of Islam.”

When the Nusra Front, with strong Turkish support, overran much of northwestern Syria last spring, Russia finally went to the aid of its long-standing ally, the Syrian government. Russian air power helped the Syrian Army push back the troops of both the Nusra Front and Islamic State. Erdogan pushed back, ordering Turkish fighters to shoot down a Russian bomber last November.

Even at the time, however, it was clear that the Turkish Army was very unhappy about the prospect of a military clash with Russia. It doesn’t share Erdogan’s dream of an Islamist-ruled Syria either. Meanwhile the Russian bombs kept falling, the Syrian Army went on advancing, and now it has cut the main supply line from Turkey to the rebels in and around Aleppo.

Erdogan is frustrated and angry, and he now has an equally reckless ally in Prince Muhammad bin Salman, the Saudi deputy crown prince and defense minister. Over the past week these two men appear to have talked themselves into a limited military incursion into Syria to push the regime’s troops back and reopen the supply lines to the rebels. This would also have allowed the Turkish Army to whack the Syrian Kurds, who are building a de facto independent state in the Kurdish-majority territory along Turkey’s southern border. (Erdogan is already at war with Turkey’s own Kurdish nationalists, having broken a four-year truce with them last summer.)

On Saturday the Turkish Army began shelling Syrian Kurdish forces. On Sunday Assad’s government complained to the U.N. that about a hundred “Turkish soldiers or mercenaries” had crossed the border into Syria. But at that point the grown-ups took over, and the Turkish defense minister denied that there was any intention to invade Syria.

France publicly warned Turkey to end its attacks on Saturday, and there were doubtless secret but frantic warnings to the same effect from Turkey’s other NATO allies. Turkey (and Saudi Arabia) have almost certainly been put on notice that if they choose to start a local war with Russian forces in Syria, they will have to fight it alone.

So that is probably the end of that, and everybody can get back to the business of partitioning Syria — which is what all the talk of a “cessation of hostilities” is really about.

Gwynne Dyer is an independent journalist and military historian.

KEYWORDS Russia, Syria, Erdogan, Turkey