Fix requirementslib bug

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-10-30 11:32:05 -04:00
parent 3140ee6f0b
commit 150ec74f39
+2 -1
View File
@@ -649,7 +649,8 @@ class VCSRequirement(FileRequirement):
# 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