]> git.lizzy.rs Git - rust.git/commitdiff
Don't require git user to be configured for testing rust
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>
Fri, 13 Jan 2023 13:51:51 +0000 (13:51 +0000)
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>
Fri, 13 Jan 2023 13:51:51 +0000 (13:51 +0000)
.github/workflows/nightly-cranelift.yml
.github/workflows/rustc.yml
scripts/setup_rust_fork.sh

index 32a8ba9bcc9923036868024b9425c354906afffd..8b3bfab7071ce301b25e91694919e6af6938e9b7 100644 (file)
@@ -21,10 +21,7 @@ jobs:
         EOF
 
     - name: Prepare dependencies
-      run: |
-        git config --global user.email "user@example.com"
-        git config --global user.name "User"
-        ./y.rs prepare
+      run: ./y.rs prepare
 
     - name: Patch Cranelift
       run: |
index 8844874ecb01f8855641e3a8d81470f1c5b84265..5faa8f0540451b848506fadd139fc6333429b230 100644 (file)
@@ -24,10 +24,7 @@ jobs:
         EOF
 
     - name: Prepare dependencies
-      run: |
-        git config --global user.email "user@example.com"
-        git config --global user.name "User"
-        ./y.rs prepare
+      run: ./y.rs prepare
 
     - name: Test
       run: ./scripts/test_bootstrap.sh
@@ -51,10 +48,7 @@ jobs:
         EOF
 
     - name: Prepare dependencies
-      run: |
-        git config --global user.email "user@example.com"
-        git config --global user.name "User"
-        ./y.rs prepare
+      run: ./y.rs prepare
 
     - name: Test
       run: ./scripts/test_rustc_tests.sh
index 88bc64455030eeb321448302a1617a071ede89f0..ce0d7e9fe07da03f9e6684a1a8ed210783c2efe9 100644 (file)
@@ -10,7 +10,7 @@ git fetch
 git checkout -- .
 git checkout "$(rustc -V | cut -d' ' -f3 | tr -d '(')"
 
-git am ../patches/*-sysroot-*.patch
+git -c user.name=Dummy -c user.email=dummy@example.com am ../patches/*-sysroot-*.patch
 
 git apply - <<EOF
 diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml