Skip to content

Not all git commits fetched.

Summary

There was a strange error with git_tag from bst_external: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/jobs/130871279

git_tag is mostly based on git. And I believe the issue is also on git.

I am not sure what happened. But I have found a potential bug that could explain the failure.

Steps to reproduce

  • Create a remote repository with just a commit.
  • Create an element using that commit.
  • On remote repository add a tag 'badtag'
  • Build the element.
  • Create a new commit not in a branch and override 'badtag' to be that commit. (If you track, it has to be done on another machine/account that does not have cache).
  • Build the updated element.

What is the current bug behavior?

The commit is not fetched.

What is the expected correct behavior?

The commit should be fetched.

Relevant logs and/or screenshots

Possible fixes

Add --force in the call to git fetch so that we override the tag.

Other relevant information

  • BuildStream version affected: /milestone %BuildStream_v1.x

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information