[PATCH] ls-tree: handle trailing slashes in the pathspec properly.