git clone cleanup in update