简体   繁体   English

Thoughtworks Go.CD中的Git修改检查失败错误

[英]Git Modification Check Failed Error in Thoughtworks Go.CD

I am getting the following error in Thoughtworks Go for one of the projects, what does it mean and how can I fix it? 对于其中一个项目,我在Thoughtworks Go中收到以下错误,这是什么意思,我该如何解决?

Modification check failed for material: URL: https://username :******@bitbucket.org/company/project.git, Branch: [Mar-03 17:08:55] Error performing command: --- Command --- git rev-parse --abbrev-ref HEAD --- Environment --- {} --- INPUT ---- --OUTPUT --- HEAD --- ERROR --- STDERR: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. 物料的修改检查失败:URL: https:// username :****** @ bitbucket.org/company/project.git,分支:[Mar-03 17:08:55]执行命令时出错:-命令--- git rev-parse --abbrev-ref HEAD ---环境--- {} ---输入-----输出---头---错误--- STDERR:致命:模棱两可参数'HEAD':未知的修订或路径不在工作树中。 STDERR: Use '--' to separate paths from revisions, like this: STDERR: 'git [...] -- [...]' --- STDERR:使用'-'将路径与修订分开,如下所示:STDERR:'git [...]-[...]'-

If you look at the pipeline XML, there was one where the material had set the branch to be an empty string like so: branch="" . 如果您查看管道XML,则其中的一种材料将分支设置为空字符串,例如: branch="" Once I deleted this, the error went away. 一旦删除此错误,错误就消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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