Use `git log --pretty=oneline -n ${commitLimit} --topo-order` instead of `git log --pretty=oneline -n ${commitLimit}`
Use
git log --pretty=oneline -n ${commitLimit} --topo-orderinstead ofgit log --pretty=oneline -n ${commitLimit}