update-ref --stdin: read the whole input at once