Parse git ls-tree correctly