使用 gitclone 时出现 Phing 错误 - Git 任务依赖于 PEAR 的 VersionControl_Git 包

Phing error when using gitclone - Git tasks depend on PEAR\'s VersionControl_Git package

当我 运行 phing 安装时,我不断收到此错误:

Execution of target "install" failed for the following reason:
/Applications/MAMP/htdocs/wp-test/build.xml:7:8:
/Applications/MAMP/htdocs/wp-test/build.xml:7:8: The Git tasks depend 
on PEAR\'s VersionControl_Git package.

所以我下载了这个包:

downloading VersionControl_Git-0.4.4.tgz ...
Starting to download VersionControl_Git-0.4.4.tgz (14,831 bytes)
.....done: 14,831 bytes
install ok: channel://pear.php.net/VersionControl_Git-0.4.4

但它仍然给我同样的错误。这是我的 build.xml:

<project name="wp-dev" default="install">
    <property name="package" value="wp-dev" override="true"/>
    <property name="wpdeposit.dir" value="wp-content/plugins/wpdeposit" override="true"/>
    <target name="install">
        <gitclone
                repository="https://github.com/WordPress/WordPress.git"
                targetPath="/" />
    </target>

</project>

您需要设置 PHP 的包含路径,有关详细信息,请参阅 the PEAR manual