From 471bfdce5869bb6d95c0583c5af3ebb0621d5075 Mon Sep 17 00:00:00 2001 From: Rohan Barar Date: Sat, 20 Sep 2025 09:00:36 +1000 Subject: [PATCH 1/2] Add .gitattributes + Fix encodings Signed-off-by: Rohan Barar --- .gitattributes | 4 ++++ oem/install.bat | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..459dcce --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# Ensure Windows-friendly line endings and encoding for batch and registry files +*.bat text eol=crlf +*.cmd text eol=crlf +*.reg text eol=crlf working-tree-encoding=UTF-16LE-BOM diff --git a/oem/install.bat b/oem/install.bat index 9a5aa84..1b116f6 100644 --- a/oem/install.bat +++ b/oem/install.bat @@ -40,7 +40,7 @@ if %ERRORLEVEL% equ 0 ( echo [SUCCESS] Firewall changes applied successfully. ) else ( echo [ERROR] Failed to apply firewall changes. - echo Please manually enable Remote Desktop via 'Settings ► System ► Remote Desktop'. + echo Please manually enable Remote Desktop via 'Settings --> System --> Remote Desktop'. ) ) From 33b13ed510fb948764a5f9c7ceee8ca0d1c9d5eb Mon Sep 17 00:00:00 2001 From: Rohan Barar Date: Sat, 20 Sep 2025 10:38:20 +1000 Subject: [PATCH 2/2] Update .pre-commit-config.yaml to exclude Windows files from line ending checks Signed-off-by: Rohan Barar --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3777aba..65436f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,9 @@ repos: args: [ "775" ] files: (\.sh|winapps)$ - id: forbid-crlf + exclude: '\.(bat|cmd|reg)$' - id: remove-crlf + exclude: '\.(bat|cmd|reg)$' - id: forbid-tabs - id: remove-tabs args: [ --whitespaces-count, "4" ] @@ -32,6 +34,7 @@ repos: - id: end-of-file-fixer - id: fix-byte-order-marker - id: mixed-line-ending + exclude: '\.(bat|cmd|reg)$' - id: pretty-format-json args: [ "--autofix", "--no-sort-keys" ] - id: sort-simple-yaml