diff options
| -rw-r--r-- | project.py | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -2296,7 +2296,9 @@ class Project: | |||
| 2296 | 2296 | ||
| 2297 | try: | 2297 | try: |
| 2298 | rev = self.GetRevisionId() | 2298 | rev = self.GetRevisionId() |
| 2299 | except GitError: | 2299 | except (GitError, ManifestInvalidRevisionError): |
| 2300 | # The git repo may be outdated (i.e. not fetched yet) and querying | ||
| 2301 | # its submodules using the revision may not work; so return here. | ||
| 2300 | return [] | 2302 | return [] |
| 2301 | return get_submodules(self.gitdir, rev) | 2303 | return get_submodules(self.gitdir, rev) |
| 2302 | 2304 | ||
