Repository.mergeBranches leaves HEAD with a dirty index after the merge
#1271
+132
−16