google / pull-request-mailer

Sends a GitHub pull request as a patch series via email
BSD 3-Clause "New" or "Revised" License
44 stars 15 forks source link

Fork before clone in server #6

Closed nh2 closed 9 years ago

nh2 commented 9 years ago

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.