我正在使用AWS CodeBuild设置AWS Elastic Beanstalk的部署。
但是,我在尝试部署应用程序时遇到以下错误:
eb deploy staging --verbose
ERROR: CommandError - An error occurred while handling git command.
Error code: 128 Error: error: Could not read 121c8263f48a23a0fc66af9989cc9ca8bffaae01
fatal: Failed to traverse parents of commit a9c6e3340d50d603fc7d21b3d10edcc5d2ba47ab
这让我感觉好几个小时。
问题是AWS Codebuild项目被配置为执行Shallow克隆:
Git clone depth = 1
出于某种原因,EB CLI需要检查其他提交。要解决这个问题,我必须将项目配置为执行完全克隆:
编辑项目 - >更新源 - > Git克隆深度 - >完整