receive-pack.c: move iterating over all commands outside execute_commands