subtree: fix argument validation in add/pull/push