Skip to content

Commit

Permalink
export: fix handling of nested git dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zyv authored and finswimmer committed Oct 6, 2020
1 parent dc2a75d commit 9010821
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions poetry/utils/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,14 @@ def _export_requirements_txt(
# 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]
Expand Down

0 comments on commit 9010821

Please sign in to comment.