Skip to content

Commit

Permalink
Merge pull request #2883 from Jamim/fix/get-virtualenv-hash
Browse files Browse the repository at this point in the history
Fix _get_virtualenv_hash function
  • Loading branch information
techalchemy authored Nov 3, 2018
2 parents 785f2be + 780e879 commit 8799431
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
.AppleDouble
.LSOverride

# PyCharm
.idea/

# VSCode
.vscode

Expand Down
1 change: 1 addition & 0 deletions news/3151.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix project path hashing logic in purpose to prevent collisions of virtual environments.
2 changes: 1 addition & 1 deletion pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def get_name(name, location):
# In-project venv
# "Proper" path casing (on non-case-sensitive filesystems).
if (
fnmatch.fnmatch("A", "a")
not fnmatch.fnmatch("A", "a")
or self.is_venv_in_project()
or get_workon_home().joinpath(venv_name).exists()
):
Expand Down

0 comments on commit 8799431

Please sign in to comment.