aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb
diff options
context:
space:
mode:
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>2008-01-18 20:36:20 +0000
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>2008-01-18 20:36:20 +0000
commitd7fc941539c87b962a97a4dae3024d67e5d2c2a3 (patch)
tree812e265f49935d7af1e789133cddc8ebe483d81d /lib/bb
parentad27c240d742f409b6300c6e5dcf1046189f1388 (diff)
downloadbitbake-d7fc941539c87b962a97a4dae3024d67e5d2c2a3.tar.gz
bitbake 1.9.x: add branch support to the git fetcher -- thanks Otavio Salvador.
Diffstat (limited to 'lib/bb')
-rw-r--r--lib/bb/fetch/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py
index 21259a23b..9cc7f4e08 100644
--- a/lib/bb/fetch/git.py
+++ b/lib/bb/fetch/git.py
@@ -50,6 +50,8 @@ class Git(Fetch):
if 'protocol' in ud.parm:
ud.proto = ud.parm['protocol']
+ ud.branch = ud.parm.get("branch", "")
+
tag = Fetch.srcrev_internal_helper(ud, d)
if tag is True:
ud.tag = self.latest_revision(url, ud, d)
@@ -130,7 +132,8 @@ class Git(Fetch):
def _latest_revision(self, url, ud, d):
- output = runfetchcmd("git ls-remote %s://%s%s" % (ud.proto, ud.host, ud.path), d, True)
+ bb.msg.note(1, bb.msg.domain.Fetcher, "Calling git ls-remote %s://%s%s %s" % (ud.proto, ud.host, ud.path, ud.branch ) )
+ output = runfetchcmd("git ls-remote %s://%s%s %s" % (ud.proto, ud.host, ud.path, ud.branch), d, True)
return output.split()[0]
def _build_revision(self, url, ud, d):