Its unclear if its OK for the hook to mark a ReceiveCommand's status in order to reject the operation.  If you compare this class's Javadoc with the Javadoc in PreReceiveHook, you'll see what I mean.  We're a bit more verbose there about how to use the interface.