[yocto] [PATCH] bitbake: fetch/git: fix head refs in git ls-remote call
Richard Leitner
richard.leitner at skidata.com
Mon Jul 7 06:21:16 PDT 2014
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.leitner at 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
More information about the yocto
mailing list