django / djangoproject.com

Source code to djangoproject.com
https://www.djangoproject.com/
BSD 3-Clause "New" or "Revised" License
1.87k stars 947 forks source link

Add .gitattributes file to manage line endings #1472

Closed WajahatKanju closed 3 months ago

WajahatKanju commented 8 months ago

Pull Request: Config Compatibility - Line Endings Fix

Description: This pull request addresses a configuration compatibility issue related to line endings when setting up the Django project using Docker on Windows. The problem arises from the docker-entrypoint.sh file having Windows line endings (CRLF) instead of the expected Linux line endings (LF), causing script execution errors during docker-compose up.fix issue #1467 and #990

Changes Made:

  1. Added a .gitattributes file to the repository to specify LF line endings for .sh files.

Steps to Reproduce:

Expected Results:

Actual Results:

Environment:

Proposed Solution:

Contributor's Note: I have tested the changes on my local environment, and they resolve the line ending issue. This pull request is submitted in accordance with the Django project's contribution guidelines.


Checklist:

bmispelon commented 3 months ago

Finally got around to looking at this. Thanks for your contribution! 🚀