Created attachment 283407 [details, diff] diff of the required change to be able to switch TAG/COMMIT branch git-2 _src_unpack() fails to unpack because git-2_branch() fails to switch branch when it comes to: there's only a master branch (e.g. linux.git) and one has to clone the master branch and switch to a TAG or a COMMIT branch with a `git checkout -b branch-$EGIT_TAG $EGIT_TAG' (for the TAG case). EGIT_COMMIT is already implemented but I could not make use of it without a slight change to git-2_bracnh(). EGIT_TAG is not yet implemented and I have to add a few lines to be able to clone e.g. v3.0 on linux mainline--it's much easier to use EGIT_TAG rather than a very long, no human understandable, commit string.
Created attachment 284755 [details, diff] diff of the required change to be able to switch TAG/COMMIT branch Second patch already! well, this was necessary as switching branch relying only on EGIT_TAG did not work at all with the previous patch. there weren't much to do but it shall be done in order to. well, actually it worked only and only if EGIT_COMMIT is set. the issue is that EGIT_BRANCH and EGIT_COMMIT are defined to default to EGIT_MASTER... that's explain why it did not work.
# @ECLASS-VARIABLE: EGIT_COMMIT # @DESCRIPTION: # Variable containing commit hash/tag we want to check out. # It can be overriden via env using packagename_LIVE_COMMIT # variable. In other words, you can put tag into EGIT_COMMIT as well. Unless I'm misunderstanding you.
You're not, simply, even if now I don't remember exactly the source of my previous nightmare, the second patch infirm that because of the default value of ${EGIT_BRANCH:=$EGIT_MASTER}. Simply put, if EGIT_COMMIT was enough, then it wouldn't fail badly to switch to a branch based only on a TAG.