gh-103088: Ensure POSIX venv scripts always use LF line endings (GH-103591)

Also touches the affected files in meaningless ways to ensure they get updated when pulling
This commit is contained in:
Steve Dower 2023-04-17 17:33:54 +01:00 committed by GitHub
parent 5d9762e7cf
commit eb5fd31948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

1
.gitattributes vendored
View File

@ -34,6 +34,7 @@ Lib/test/xmltestdata/* noeol
# Shell scripts should have LF even on Windows because of Cygwin # Shell scripts should have LF even on Windows because of Cygwin
Lib/venv/scripts/common/activate text eol=lf Lib/venv/scripts/common/activate text eol=lf
Lib/venv/scripts/posix/* text eol=lf
# CRLF files # CRLF files
[attr]dos text eol=crlf [attr]dos text eol=crlf

View File

@ -1,5 +1,5 @@
# This file must be used with "source bin/activate" *from bash* # This file must be used with "source bin/activate" *from bash*
# you cannot run it directly # You cannot run it directly
deactivate () { deactivate () {
# reset old environment variables # reset old environment variables

View File

@ -1,5 +1,6 @@
# This file must be used with "source bin/activate.csh" *from csh*. # This file must be used with "source bin/activate.csh" *from csh*.
# You cannot run it directly. # You cannot run it directly.
# Created by Davide Di Blasi <davidedb@gmail.com>. # Created by Davide Di Blasi <davidedb@gmail.com>.
# Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com> # Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com>

View File

@ -1,5 +1,5 @@
# This file must be used with "source <venv>/bin/activate.fish" *from fish* # This file must be used with "source <venv>/bin/activate.fish" *from fish*
# (https://fishshell.com/); you cannot run it directly. # (https://fishshell.com/). You cannot run it directly.
function deactivate -d "Exit virtual environment and return to normal shell environment" function deactivate -d "Exit virtual environment and return to normal shell environment"
# reset old environment variables # reset old environment variables