繁体   English   中英

在git push上,circleci部署到heroku失败了

[英]circleci deployment to heroku failed on git push

我刚建立了一个新项目,从circleci部署到heroku。 我的构建脚本如下:

git push git@heroku.com:socialjusticebingo.git $CIRCLE_SHA1:refs/heads/master

在我的circleci构建的控制台中,我看到以下内容:

remote: Verifying deploy... done.
To git@heroku.com:socialjusticebingo.git
 ! [remote rejected] ca5c72a28f7ca9c793becd122e6bc73bf8f34b44 -> master (missing necessary objects)

显然这个问题与浅层克隆有关。 我能够通过更改我的部署脚本来解决问题,如下所示:

git fetch origin --unshallow
git push git@heroku.com:socialjusticebingo.git $CIRCLE_SHA1:refs/heads/master

暂无
暂无

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

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