命令“eval git fetch origin +refs/pull/7/merge:”失败了

7

我的TravisCI构建一直失败,我得到以下错误:

命令“eval git fetch origin +refs/pull/7/merge:”失败了3次。

这是完整的错误跟踪:

$ git fetch origin +refs/pull/7/merge:
fatal: Couldn't find remote ref refs/pull/7/merge
Unexpected end of command stream
The command "eval git fetch origin +refs/pull/7/merge:" failed. Retrying, 2 of 3.
fatal: Couldn't find remote ref refs/pull/7/merge
Unexpected end of command stream
The command "eval git fetch origin +refs/pull/7/merge:" failed. Retrying, 3 of 3.
fatal: Couldn't find remote ref refs/pull/7/merge
Unexpected end of command stream
The command "eval git fetch origin +refs/pull/7/merge:" failed 3 times.
The command "git fetch origin +refs/pull/7/merge:" failed and exited with 128 during .
Your build has been stopped.

仓库链接还是.travis.yml文件? - набиячлэвэли
https://travis-ci.org/deepakmahakale/coderails/builds/154784329 - Deepak Mahakale
可能是因为您关闭了PR并删除了源分支:v - набиячлэвэли
1个回答

8
很可能是因为您尝试构建已合并/关闭的PR。
我以前也遇到过同样的错误。
当这种情况发生时,我通常只是将PR合并到主分支(但不一定删除PR所在的分支)。
然后我切换到Travis,并启动对(现在合并的)PR分支的构建,而不是对主分支的构建。该分支仍然存在,但我猜由于PR已合并,Travis无法获取它。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接