Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if feeds in feeds.conf references a tag instead of a branch cooker shows a git error that confuses the user #3

Open
nicopace opened this issue May 5, 2017 · 3 comments

Comments

@nicopace
Copy link
Member

nicopace commented May 5, 2017

This happens with:

https://github.com/lede-project/source.git;v17.01.1 

because v17.01.1 is a tag,
and does not happen with

src-git libremesh https://github.com/libremesh/lime-packages.git;develop

That is a branch.

The issue comes because for each feeds.conf line you are doing git pull without checking if it is a tag or branch here: https://github.com/libremesh/lime-sdk/blob/master/cooker#L213
You can check the available tags by using git tag -l

@nicopace nicopace added the bug label May 5, 2017
@p4u
Copy link
Member

p4u commented May 5, 2017

Hi.
What you mean by break exactly? Can you attach some output?

If "git pull" is executed over a tag it does just nothing, so IMO it is not breaking anything. The only thing is that git complains... It might be controlled but does not affect in any way to the whole cooking process.

@nicopace
Copy link
Member Author

nicopace commented May 5, 2017

Sorry about the alarming message... we were having issues and thought it was because of that error.
It does nothing bad, but it would be a good aesthetic improvement to just check if it is a tag don't do the pull, because it is not needed, and because it throws a visual error.

@nicopace nicopace added question and removed bug labels May 5, 2017
@nicopace nicopace changed the title The update breaks if feeds in feeds.conf references a tag instead of a branch if feeds in feeds.conf references a tag instead of a branch cooker shows a git error that confuses the user May 5, 2017
@p4u
Copy link
Member

p4u commented May 5, 2017

Agree.
I'll do it when I have time but it is not a priority in my tasks list. If you want to send a PR, it will be welcome :)

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

No branches or pull requests

3 participants