我正在尝试使用 phing 和 GitCloneTask 编写构建文件(从 github 克隆 repo),但每次运行 phing 时我都会收到此消息:
远端意外挂断
所以我检查了我是否可以用 git-clone => 克隆 repo 工作得很好;
检查我的 .gitconfig 是否存在 Github API 令牌和用户名错误 => 没有拼写错误或其他内容
检查了 github 上提供的所有 repo-url(ssh、https、只读)=> 在构建文件中使用时,它们都不会更改消息
有任何想法吗?
这是构建文件的代码:
<?xml version="1.0" encoding="UTF-8"?>
<project name="ort" default="init">
<!-- ============================================ -->
<!-- Target: initialize -->
<!-- ============================================ -->
<target name="init">
<input propertyname="local.documentRoot">Where to put the files?:</input>
<mkdir dir="${local.documentRoot}" />
<gitclone
repository="git://github.com/pappelt/oil-resistance-test.git"
targetPath="${local.documentRoot}" />
</target>
</project>