Jes*_*ith 4 git heroku circleci
我刚建立了一个新项目,从circleci部署到heroku.我的构建脚本如下:
git push git@heroku.com:socialjusticebingo.git $CIRCLE_SHA1:refs/heads/master
Run Code Online (Sandbox Code Playgroud)
在我的circleci构建的控制台中,我看到以下内容:
remote: Verifying deploy... done.
To git@heroku.com:socialjusticebingo.git
! [remote rejected] ca5c72a28f7ca9c793becd122e6bc73bf8f34b44 -> master (missing necessary objects)
Run Code Online (Sandbox Code Playgroud)
Jes*_*ith 12
显然这个问题与浅层克隆有关.我能够通过更改我的部署脚本来解决问题,如下所示:
git fetch origin --unshallow
git push git@heroku.com:socialjusticebingo.git $CIRCLE_SHA1:refs/heads/master
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
857 次 |
| 最近记录: |