简体   繁体   中英

The command “eval git fetch origin +refs/pull/7/merge:” failed

My TravisCI build is failing continuously, and I am getting the following error:

The command "eval git fetch origin +refs/pull/7/merge:" failed 3 times.

This is full trace of error:

$ 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.

It's most likely because you attempted to build a PR that was already merged / closed.

I've experienced the same error before.

When it's happened to me, I've usually just merged a PR into master (but haven't necessarily deleted the branch the PR was on yet).

I then switch over to Travis and kick off a build for the (now merged) PR branch, instead of for master. The branch was still there, but I guess since the PR was merged it's unavailable for Travis to fetch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM