-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
venv overwrites existing .gitignore #135604
Copy link
Copy link
Open
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-venvRelated to the venv moduleRelated to the venv module
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-venvRelated to the venv moduleRelated to the venv module
Projects
Status
Todo
Bug report
Bug description
I cloned a github project with an existing
.gitignorefile.I created a new python venv inside the cloned project using
python3 -m venv .venv .After creating the new venv, I see that the
.gitignorefile has been modified.I found this documentation on the mentioned url added to the
.gitignorefile:Environment
Expected behaviour
I would expect it to not overwrite an existing
.gitignorefile, so it only creates it if it isnt present already.Update
Please let me know if I'm missing some details or you need further testing for triage the issue.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
.gitignoreinstead of overwriting it #139130