Commit 27858e82 by Yury V. Zaytsev Committed by GitHub

export: fix handling of nested git dependencies

parent b02e66c2
......@@ -134,11 +134,14 @@ class Exporter(object):
# If we have extra indexes, we add them to the beginning of the output
indexes_header = ""
for index in sorted(indexes):
repository = [
repositories = [
r
for r in self._poetry.pool.repositories
if r.url == index.rstrip("/")
][0]
]
if not repositories:
continue
repository = repositories[0]
if (
self._poetry.pool.has_default()
and repository is self._poetry.pool.repositories[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment