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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user