From d4718f064a6c7c5b8c4384af294241a0af236975 Mon Sep 17 00:00:00 2001 From: YAN Wenkun Date: Mon, 30 Sep 2024 01:18:02 +0800 Subject: [PATCH] Add eol=lf to prevent CI auto CRLF --- .gitattributes | 1 + stage1.sh | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/stage1.sh b/stage1.sh index d6cf2a4..8bc6e60 100644 --- a/stage1.sh +++ b/stage1.sh @@ -1,6 +1,8 @@ #!/bin/bash set -eux +git config --global core.autocrlf true + gcs='git clone --depth=1 --no-tags --recurse-submodules --shallow-submodules' workdir=$(pwd)