summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index bcc0da583b..5efdfa9ca6 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -123,7 +123,8 @@ class Git(FetchMethod):
123 for name in ud.names: 123 for name in ud.names:
124 # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one 124 # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one
125 if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]): 125 if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]):
126 ud.branches[name] = ud.revisions[name] 126 if ud.revisions[name]:
127 ud.branches[name] = ud.revisions[name]
127 ud.revisions[name] = self.latest_revision(ud.url, ud, d, name) 128 ud.revisions[name] = self.latest_revision(ud.url, ud, d, name)
128 129
129 gitsrcname = '%s%s' % (ud.host.replace(':','.'), ud.path.replace('/', '.')) 130 gitsrcname = '%s%s' % (ud.host.replace(':','.'), ud.path.replace('/', '.'))