我正在尝试使用Phing来调用git并拉出一个远程私有存储库,但它不起作用.
这是我的Phing代码:
<project name="test" default="main">
<!-- Get User Variables -->
<property file="build.properties" />
<!-- Declare Variables -->
<property name="base.dir" value="../" />
<property name="git.repository" value="git@github.com:test/test.git" />
<!-- Pull Git Release -->
<target name="git.pull">
<gitpull
repository="${git.repository}"
source="origin"
refspec="${git.release}"
/>
</target>
<target name="main" depends="git.pull">
</target>
</project>
Run Code Online (Sandbox Code Playgroud)
但是当我跑步时我得到这个错误:
You must specify readable directory as repository.
Run Code Online (Sandbox Code Playgroud)
有谁知道如何做到这一点?还是有一个有效的例子?
因为pull你必须提供一个本地存储库.远程存储库(一个,从哪里拉出来)是你给的那个source
您可以在测试中找到示例https://github.com/phingofficial/phing/blob/master/test/etc/tasks/ext/git/GitPullTaskTest.xml
| 归档时间: |
|
| 查看次数: |
2849 次 |
| 最近记录: |