Skip to content

Commit d443a13

Browse files
authored
{CI} Set LF line endings for Git hooks and generated files (#33083)
1 parent 15bc78d commit d443a13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ build_scripts/windows/scripts/az eol=lf
1616
# sh scripts should be LF
1717
*.sh eol=lf
1818

19+
# Git hook scripts (no extension) should be LF to work on macOS/Linux
20+
.githooks/pre-commit eol=lf
21+
.githooks/pre-push eol=lf
22+
1923
# Generated latest index assets should always use LF to avoid cross-platform churn
2024
src/azure-cli-core/azure/cli/core/commandIndex.latest.json text eol=lf
2125
src/azure-cli-core/azure/cli/core/helpIndex.latest.json text eol=lf

0 commit comments

Comments
 (0)