 His withdrawal of his troops after only two hours leaving a Givati Company to face an Egyptian counterattack led to Givati Commander Shimon Avidan to demand that Dayan be disciplined for breach of discipline.Chief of Staff Yigael Yadin instructed the military attorney general to proceed, but the case was dismissed.On 23 July 1948, on David Ben-Gurion's insistence over General Staff opposition, Dayan was appointed military commander of Jewish-controlled areas of Jerusalem.