diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-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 |