Split `toplevel` definition and assignment as the `local` builtin has it's own exit code. Thus the function previously did not return if the `PWD` was not in a git repo.
Split `toplevel` definition and assignment as the `local` builtin has it's own exit code. Thus the function previously did not return if the `PWD` was not in a git repo.