mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Use startswith for url comparison in project
Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
+1
-1
@@ -654,7 +654,7 @@ class Project(object):
|
||||
if name:
|
||||
source = [s for s in sources if s.get('name') == name]
|
||||
elif url:
|
||||
source = [s for s in sources if s.get('url') in url]
|
||||
source = [s for s in sources if url.startswith(s.get('url'))]
|
||||
if source:
|
||||
return first(source)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user