Articles in this section

Missing commits

If you push code without a full Git history, sometimes commits are missing. This can happen if you’re pushing code from an external CI/CD pipeline, like GitHub action. These pipelines often only do shallow clones by default.

In such cases, your build might fail with an internal error. Or you might see an error like unexpected disconnect while reading sideband packet

To avoid the error, make sure you do a full clone of the repository before pushing code. For example, for the Checkout GitHub action, set fetch-depth: 0 to clone the full history. For GitLab, set clones to have a limit of 0 either in repository settings or using the GIT_DEPTH variable.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.