misc: refactored post-receive.