We cd into the cloned directory, which is fine for the command line utility, but not for the server (its process should stay in the same directory).
Thus we need to forkProcess before executing pull-request-mailer commands. (It must not be forkOS as this only creates a new thread, not a new process.)
Otherwise, we get fatal: Could not get current working directory: No such file or directory.
We
cd
into the cloned directory, which is fine for the command line utility, but not for the server (its process should stay in the same directory).Thus we need to
forkProcess
before executing pull-request-mailer commands. (It must not beforkOS
as this only creates a new thread, not a new process.)Otherwise, we get
fatal: Could not get current working directory: No such file or directory
.