We could avoid the subshell via
GIT_CEILING_DIRECTORIES=$(pwd) \
git -C lsremote-root lsremote ... >actual
Not sure if it is worth to trade off a block of code (and an extra shell
at run time) for an overly long line.
The rest looks good to me.
Thanks,
Stefan