strip newlines from tree entry names
strip newlines from tree entry names

ported from github.com

abicky/grit,gitcafe-dev/grit,gitlabhq/grit,rgroux/grit,gitcafe-dev/grit,rgroux/grit,gitlabhq/grit,flycutter/grit,flycutter/grit