diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-01-20 12:09:31 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-01-20 12:09:31 +0000 |
| commit | 079e6825aacec7ef9b3976c9057363b690a43ce5 (patch) | |
| tree | b25054c486e11d0b293e2166f1c4cdce02eb8704 /bitbake/lib/bb/fetch/git.py | |
| parent | 027c071fc5fbaed003d17e1d385008a5b70ee3eb (diff) | |
| download | poky-079e6825aacec7ef9b3976c9057363b690a43ce5.tar.gz | |
bitbake: sync with upstream stable branch bugfixes and enhancements
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3554 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/fetch/git.py')
| -rw-r--r-- | bitbake/lib/bb/fetch/git.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index 21259a23b0..9cc7f4e086 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py | |||
| @@ -50,6 +50,8 @@ class Git(Fetch): | |||
| 50 | if 'protocol' in ud.parm: | 50 | if 'protocol' in ud.parm: |
| 51 | ud.proto = ud.parm['protocol'] | 51 | ud.proto = ud.parm['protocol'] |
| 52 | 52 | ||
| 53 | ud.branch = ud.parm.get("branch", "") | ||
| 54 | |||
| 53 | tag = Fetch.srcrev_internal_helper(ud, d) | 55 | tag = Fetch.srcrev_internal_helper(ud, d) |
| 54 | if tag is True: | 56 | if tag is True: |
| 55 | ud.tag = self.latest_revision(url, ud, d) | 57 | ud.tag = self.latest_revision(url, ud, d) |
| @@ -130,7 +132,8 @@ class Git(Fetch): | |||
| 130 | 132 | ||
| 131 | def _latest_revision(self, url, ud, d): | 133 | def _latest_revision(self, url, ud, d): |
| 132 | 134 | ||
| 133 | output = runfetchcmd("git ls-remote %s://%s%s" % (ud.proto, ud.host, ud.path), d, True) | 135 | bb.msg.note(1, bb.msg.domain.Fetcher, "Calling git ls-remote %s://%s%s %s" % (ud.proto, ud.host, ud.path, ud.branch ) ) |
| 136 | output = runfetchcmd("git ls-remote %s://%s%s %s" % (ud.proto, ud.host, ud.path, ud.branch), d, True) | ||
| 134 | return output.split()[0] | 137 | return output.split()[0] |
| 135 | 138 | ||
| 136 | def _build_revision(self, url, ud, d): | 139 | def _build_revision(self, url, ud, d): |
