git-read-tree: fix "--reset" handling