Fix ls-tree

this pull request fixed JIRA ROGUE #271