diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index b5bcfcf0a5..ec27f1396e 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -72,16 +72,17 @@ class Git(FetchMethod): | |||
72 | 72 | ||
73 | ud.basecmd = data.getVar("FETCHCMD_git", d, True) or "git" | 73 | ud.basecmd = data.getVar("FETCHCMD_git", d, True) or "git" |
74 | 74 | ||
75 | ud.write_tarballs = (data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True) or "0") != "0" | ||
76 | |||
77 | ud.localfile = ud.clonedir | ||
78 | |||
79 | def fixuprevisions(self, ud, d): | ||
75 | for name in ud.names: | 80 | for name in ud.names: |
76 | # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one | 81 | # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one |
77 | if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]): | 82 | if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]): |
78 | ud.branches[name] = ud.revisions[name] | 83 | ud.branches[name] = ud.revisions[name] |
79 | ud.revisions[name] = self.latest_revision(ud.url, ud, d, name) | 84 | ud.revisions[name] = self.latest_revision(ud.url, ud, d, name) |
80 | 85 | ||
81 | ud.write_tarballs = (data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True) or "0") != "0" | ||
82 | |||
83 | ud.localfile = ud.clonedir | ||
84 | |||
85 | def localpath(self, url, ud, d): | 86 | def localpath(self, url, ud, d): |
86 | return ud.clonedir | 87 | return ud.clonedir |
87 | 88 | ||