Post-receive hook: support multiple lines of input

Git will send one line for each ref being updated, we need to be able to handle
that.