Use the branch in refs/head instead of the tag. This allows a given tag name to differ from the branch name.
Signed-off-by: Richard Leitner <richard.leit...@skidata.com> --- bitbake/lib/bb/fetch2/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 9ca2442..d30f109 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -339,7 +339,7 @@ class Git(FetchMethod): """ Compute the HEAD revision for the url """ - search = "refs/heads/%s refs/tags/%s^{}" % (ud.unresolvedrev[name], ud.unresolvedrev[name]) + search = "refs/heads/%s refs/tags/%s^{}" % (ud.branches[name], ud.unresolvedrev[name]) output = self._lsremote(ud, d, search) return output.split()[0] -- 1.7.10.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto