diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/gitsm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index 25d5db0e5b..c5f7c03c4c 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/lib/bb/fetch2/gitsm.py | |||
@@ -115,7 +115,7 @@ class GitSM(Git): | |||
115 | # This has to be a file reference | 115 | # This has to be a file reference |
116 | proto = "file" | 116 | proto = "file" |
117 | url = "gitsm://" + uris[module] | 117 | url = "gitsm://" + uris[module] |
118 | if "{}{}".format(ud.host, ud.path) in url: | 118 | if url.endswith("{}{}".format(ud.host, ud.path)): |
119 | raise bb.fetch2.FetchError("Submodule refers to the parent repository. This will cause deadlock situation in current version of Bitbake." \ | 119 | raise bb.fetch2.FetchError("Submodule refers to the parent repository. This will cause deadlock situation in current version of Bitbake." \ |
120 | "Consider using git fetcher instead.") | 120 | "Consider using git fetcher instead.") |
121 | 121 | ||