restore to magit-1.2.0