Skip to content

Conversation

@Snarpix
Copy link

@Snarpix Snarpix commented Oct 10, 2025

This patch removes upstream attribute for projects, whose revisions points to tag or branch.

Upstream attribute is intended to be used when revision point to hash of commit, to aid the commit search in git.
If revision point to tag, the upstream attribute is not used in case if you just call repo sync.

If you try to pin manifest using repo manifest -r -o pinned-manifest.xml it will reuse the upstream without checking.
Which will lead to errors, if upstream attribute is invalid.

When I tried to pin manifest for our project I have discovered that
<project name="meta-imx" remote="imx" path="sources/meta-imx" revision="refs/tags/rel_imx_6.12.34_2.1.0" upstream="walnascar-6.12.34.2.1.0">
has invalid upstream and walnascar-6.12.34.2.1.0 doesn't exist. Probably a typo(note the dot-dash difference): walnascar-6.12.34-2.1.0.

But since upstream shouldn't be there when revision doesn't point to commit hash - let's remove them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant