- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在尝试使用 phing 和 GitCloneTask(从 github 克隆一个 repo)编写构建文件,但每次运行 phing 时我都会收到此消息:
The remote end hung up unexpectedly
So i checked if i could clone the repo with git-clone => works just fine;
checked my .gitconfig for an error with the Github API Token & Username => no typos or something
checked all repo-urls provided on github (ssh, https, read-only) => none of them changes the message when used in the buildfile
any ideas?
here's the code of the buildfile:
<?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>
最佳答案
我在 phing 类中进行了一些调试,我认为问题在于您需要在“gitPath”属性中指定 git 二进制文件的路径/名称。
我认为在 Linux 上可能是类似“/usr/lib/git”的东西,我正在运行 Windows 并且只是使用“git”
<target name="gitclone">
<echo msg="Getting latest code from ${git.repo}" />
<gitclone gitPath="git" repository="${git.repo}" targetPath="${build.dir}" />
</target>
之所以有效,是因为我的 git 二进制文件 (C:\Program Files\Git\cmd) 在我的 Windows PATH 中...即我可以打开命令提示符并键入“git”,Windows 就会知道它在哪里。
烦人的是,我正在克隆一个私有(private)仓库,它还需要我输入密码 -_-
关于GitCloneTask 不克隆存储库 ("The remote end hung up unexpectedly"),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5530891/
我已经阅读了关于这个问题的各种帖子,我可以验证在执行远程 ssh 命令时使用 -t 确实会强制分配 tty 并允许完成命令。但是,我遇到的问题是,在此之前十二小时,我无法自由访问该服务器。现在,由于没
我在我的本地仓库中创建了一个新分支,在一些提交之后,我想将它推送到远程仓库。 git push origin new_branch 我有这个错误: $ git push origin new_bran
我在开发应用程序中面临 Java 线程挂起的问题。以下是日志跟踪: 020 SystemOut O ----------------------------------------------
我正在测试套接字超时条件的处理 - 例如,连接超时、连接但不接受、接受但不会读取等。 我正在寻找一个程序/脚本来充当产生这些效果的服务器套接字。 这个“hung socket simulator”需要
出现错误时 致命:远端意外挂断 我可以运行哪些测试来弄清楚发生了什么?我已经创建了一个全新的 git 存储库,但它不会推送! 以下是其他 StackOverflow 问题建议的一些标准诊断: $ ss
我看过其他有类似问题的线程,但我是 git 的新手,所以大部分都没有意义:( 问题是: 我无法将简单的自述文件推送到我在 github 上的存储库。 $ ssh -T git@github.com 似
我正在尝试使用 phing 和 GitCloneTask(从 github 克隆一个 repo)编写构建文件,但每次运行 phing 时我都会收到此消息: The remote end hung
我将存储库的所有权转让给了我拥有所有权的组织。但是,现在我无法推送到存储库。我收到此错误: $ git push origin master ERROR: Repository not found.
我现在无法将我的本地提交推送到 github 存储库。我收到一条错误消息: Counting objects: 76, done. Delta compression using up to 8 th
当我试图运行时 git push origin master --force 刚好 Counting objects: 2649, done. Delta compression uses up to
$ git push -u origin master Counting objects: 321523, done. Delta compression using up to 8 thread
这里有一个奇怪的问题。当我们的所有 48 台服务器都尝试从 Git 中 pull 数据时,我们不断收到远程主机关闭的连接。当直接运行 .sh 文件时(它有 git pull 代码),没有问题,除非它与
我正尝试在 openshift 中启动一个游戏项目。第一阶段占项目近15%,已顺利完成并上传。所以,我想初始配置没问题。现在,在我几乎完成项目的其余部分后,当我尝试使用 ssh 推送项目时,每次在一定
我很长一段时间没有使用 boost::spirit,然后又回来了。并停留在简单的情况下(天哪,有时我想杀死这个库……为什么这么简单的任务在 boost 下如此复杂)。 #include #inclu
我正在通过 ssh 从 Ubuntu 笔记本电脑连接到虚拟机。 在此 VM 中,我尝试使用 git clone 存储库: /home/httpd$ sudo git clone git@github.
在使用 irb 或 rails console 时,我有时会卡住。例如,我忘记了结束语,所以当我按下回车键时,它仍在等待。 有时我可以摆脱这种情况(例如,通过提供结束语),但有时我做不到。如果没有,我
设置新的 git 安装。 在一台 Windows 笔记本电脑上,我正在运行(在 cygwin 下): git daemon --base-path=/cygdrive/c/work/proj/ 我项
所以我以为我终于在 Windows 上完成了所有设置...然后遇到了这个问题。 当前设置 URL: ssh://user@host:port/myapp.git 已经运行 Putty - 并且可以直接
我在本地创建了一个 git repo。当我尝试推送到 github 时,我得到: Warning: Permanently added the RSA host key for IP address
我已经按照“Generating SSH Keys”操作方法中的描述设置了本地系统以使用 GitHub。 key 文件和known_hosts已创建,公钥已添加到GitHub帐户,我收到消息“Hi *
我是一名优秀的程序员,十分优秀!