gitattributes: agent-hooks/*.py auf LF pinnen (Shebang-Falle)

Ohne Regel wuerde autocrlf tabu-pfade-guard.py bei Checkout zu CRLF machen ->
`#!/usr/bin/env python3\r` bricht auf der Box. Analog zur *.sh-LF-Regel.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hitonabi
2026-07-13 22:27:27 +02:00
parent 5a236b4b28
commit 913256e241
+4
View File
@@ -7,6 +7,10 @@
*.service text eol=lf *.service text eol=lf
*.timer text eol=lf *.timer text eol=lf
# Agent-Hooks laufen auf der Box (Shebang!) — .py-Hooks MÜSSEN LF behalten,
# sonst bricht `#!/usr/bin/env python3\r`. (Nur die Hooks, nicht der ganze Baum.)
deploy/agent-hooks/*.py text eol=lf
# Windows-Batch-Wrapper bleiben CRLF. # Windows-Batch-Wrapper bleiben CRLF.
*.cmd text eol=crlf *.cmd text eol=crlf
*.bat text eol=crlf *.bat text eol=crlf