diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/gitsm.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index dd94186cc4..11bfa6684f 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/lib/bb/fetch2/gitsm.py | |||
@@ -148,20 +148,6 @@ class GitSM(Git): | |||
148 | 148 | ||
149 | return True | 149 | return True |
150 | 150 | ||
151 | def need_update(self, ud, d): | ||
152 | main_repo_needs_update = Git.need_update(self, ud, d) | ||
153 | |||
154 | # First check that the main repository has enough history fetched. If it doesn't, then we don't | ||
155 | # even have the .gitmodules and gitlinks for the submodules to attempt asking whether the | ||
156 | # submodules' histories are recent enough. | ||
157 | if main_repo_needs_update: | ||
158 | return True | ||
159 | |||
160 | # Now check that the submodule histories are new enough. The git-submodule command doesn't have | ||
161 | # any clean interface for doing this aside from just attempting the checkout (with network | ||
162 | # fetched disabled). | ||
163 | return not self.update_submodules(ud, d) | ||
164 | |||
165 | def download(self, ud, d): | 151 | def download(self, ud, d): |
166 | Git.download(self, ud, d) | 152 | Git.download(self, ud, d) |
167 | 153 | ||