Skip to content

Commit

Permalink
Fix requirementslib bug
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Ryan <[email protected]>
  • Loading branch information
techalchemy committed Oct 30, 2018
1 parent 3140ee6 commit 150ec74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipenv/vendor/requirementslib/models/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,8 @@ def locked_vcs_repo(self, src_dir=None):
# Remove potential ref in the end of uri after ref is parsed
if "@" in self.link.show_url and "@" in self.uri:
uri, ref = self.uri.rsplit("@", 1)
if self.ref and ref in self.ref:
checkout = self.req.revision
if checkout and ref in checkout:
self.uri = uri

yield vcsrepo
Expand Down

0 comments on commit 150ec74

Please sign in to comment.