use magit-git-insert instead of magit-git-output

The latter had been removed from Magit.