The war continued until 20 July 1949, when the armistice with Syria was signed. By then the IDF had managed to repel the Egyptians to the Gaza Strip while Jordan took over the West Bank, including East Jerusalem.