From ba96b1afad06ac31b80f5ab0ef26ecd1d38d9ee6 Mon Sep 17 00:00:00 2001 From: Wolf Date: Wed, 23 Sep 2026 12:52:15 +0200 Subject: [PATCH] Ignore .idea and the deploy kit's secrets, keep shell scripts LF .gitignore adds .idea/, data/, deploy/release.env and deploy/backups/ next to roledesk.db* and .scratch/; config.yaml stays committed as the default. .gitattributes is the boilerplate's: deploy/ and every .sh check out with LF, since a CRLF shell script fails on the server's first line. Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 14 ++++++++++++++ .gitignore | 10 ++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3fa7e18 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,14 @@ +# Line endings, for the files that leave this machine. +# +# Everything here ends up on a Linux box — scp'd to the server, or read by +# `docker build` from a tar. A shell script with CRLF in it fails on the first +# line with `\r: command not found`, which is a mystifying way to learn about +# Git for Windows' checkout conversion. Nothing else in the repo is touched: +# no `* text=auto`, because renormalising every file is not a thing to do +# quietly while other work is in flight. +*.sh text eol=lf +# The Dockerfile and its ignore file live under deploy/ too, so one rule covers +# everything that ships: the scripts, the server files, and the image recipe. +# PowerShell reads LF happily; what it cannot read is a non-ASCII byte, which +# is a different rule and lives in `tests/test_packaging.py`. +deploy/** text eol=lf diff --git a/.gitignore b/.gitignore index bc5de45..4bd54a1 100644 --- a/.gitignore +++ b/.gitignore @@ -5,11 +5,17 @@ __pycache__/ build/ dist/ -# Environments +# Environments and editors .venv/ +.idea/ -# Local state +# Local state. config.yaml is committed on purpose: it is the default. roledesk.db* +data/ + +# Release secrets and the database copies deploy/db.ps1 pulls down. +deploy/release.env +deploy/backups/ # Tooling caches .pytest_cache/