the main part of the gitsubtree test