lime-sdk icon indicating copy to clipboard operation
lime-sdk copied to clipboard

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

Open nicopace opened this issue 7 years ago • 3 comments

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 avatar May 05 '17 00:05 nicopace

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.

p4u avatar May 05 '17 09:05 p4u

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 avatar May 05 '17 12:05 nicopace

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 :)

p4u avatar May 05 '17 12:05 p4u