Fix for multiple ref updates

Oops, there is one line for each updated ref sent to the pre-receive
hook. All must be processed.