remove space when not in git repo