Skip to content

Commit 890c612

Browse files
committed
Set core.autocrlf=false in the build system instead of CI config
1 parent 9a15db6 commit 890c612

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ jobs:
9191
sudo apt-get update
9292
sudo apt-get install -y gcc-s390x-linux-gnu qemu-user
9393
94-
- name: Windows setup
95-
if: matrix.os == 'windows-latest'
96-
run: git config --global core.autocrlf false
97-
9894
- name: Use sparse cargo registry
9995
run: |
10096
cat >> ~/.cargo/config.toml <<EOF

build_system/utils.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,14 @@ pub(crate) fn hyperfine_command(
196196
#[must_use]
197197
pub(crate) fn git_command<'a>(repo_dir: impl Into<Option<&'a Path>>, cmd: &str) -> Command {
198198
let mut git_cmd = Command::new("git");
199-
git_cmd.arg("-c").arg("user.name=Dummy").arg("-c").arg("user.email=dummy@example.com").arg(cmd);
199+
git_cmd
200+
.arg("-c")
201+
.arg("user.name=Dummy")
202+
.arg("-c")
203+
.arg("user.email=dummy@example.com")
204+
.arg("-c")
205+
.arg("core.autocrlf=false")
206+
.arg(cmd);
200207
if let Some(repo_dir) = repo_dir.into() {
201208
git_cmd.current_dir(repo_dir);
202209
}

0 commit comments

Comments
 (0)