Message ID | 987712c4c8fefd86a1f5116c11ee86e296e852ee.1664898736.git.steve@sakoman.com |
---|---|
State | Accepted, archived |
Commit | 987712c4c8fefd86a1f5116c11ee86e296e852ee |
Headers | show |
Series | [kirkstone,2.0,1/8] runqueue: Ensure deferred tasks are sorted by multiconfig | expand |
diff --git a/lib/bb/fetch2/gitsm.py b/lib/bb/fetch2/gitsm.py index c1950e48..25d5db0e 100644 --- a/lib/bb/fetch2/gitsm.py +++ b/lib/bb/fetch2/gitsm.py @@ -115,6 +115,9 @@ class GitSM(Git): # This has to be a file reference proto = "file" url = "gitsm://" + uris[module] + if "{}{}".format(ud.host, ud.path) in url: + raise bb.fetch2.FetchError("Submodule refers to the parent repository. This will cause deadlock situation in current version of Bitbake." \ + "Consider using git fetcher instead.") url += ';protocol=%s' % proto url += ";name=%s" % module