diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-08 09:27:59 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-08 12:05:35 +0000 |
commit | 5920e85c561624e657c126df58f5c378a8950bbc (patch) | |
tree | 158cb8960ecaf4f1fe21af37c8648c9fb955e3c4 /bitbake/lib | |
parent | 1544aa8ab4a80d529a001e27b473645f2caec87c (diff) | |
download | poky-5920e85c561624e657c126df58f5c378a8950bbc.tar.gz |
bitbake/fetch2/git: Ensure unresolved branches are translated into revisions
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 6bcc4a4838..f05a360f18 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -72,7 +72,8 @@ class Git(FetchMethod): | |||
72 | ud.basecmd = data.getVar("FETCHCMD_git", d, True) or "git" | 72 | ud.basecmd = data.getVar("FETCHCMD_git", d, True) or "git" |
73 | 73 | ||
74 | for name in ud.names: | 74 | for name in ud.names: |
75 | if not ud.revisions[name] or ud.revisions[name] == "master": | 75 | # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one |
76 | if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]): | ||
76 | ud.revisions[name] = self.latest_revision(url, ud, d, name) | 77 | ud.revisions[name] = self.latest_revision(url, ud, d, name) |
77 | 78 | ||
78 | ud.localfile = ud.clonedir | 79 | ud.localfile = ud.clonedir |