fixup! remote: make _ls return the list directly
remote: update head list on push

A previous commit forgot to update the head list after push as well,
leading to wrong output of git_remote_ls().