diff --git a/project.py b/project.py index 1d8ab556..50daa82f 100644 --- a/project.py +++ b/project.py @@ -2296,7 +2296,9 @@ class Project: try: rev = self.GetRevisionId() - except GitError: + except (GitError, ManifestInvalidRevisionError): + # The git repo may be outdated (i.e. not fetched yet) and querying + # its submodules using the revision may not work; so return here. return [] return get_submodules(self.gitdir, rev)