Skip to content

Commit 13d56c9

Browse files
committed
Remove need for explicit git configuration.
1 parent 2191d51 commit 13d56c9

4 files changed

Lines changed: 1 addition & 16 deletions

File tree

.github/workflows/test-coverage.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ jobs:
3131

3232
- uses: kurocha/setup-cpp@main
3333

34-
- name: Configure git
35-
run: |
36-
git config --global user.email "github-actions@github.com"
37-
git config --global user.name "GitHub Actions"
38-
3934
- name: Run tests
4035
timeout-minutes: 5
4136
run: bundle exec bake test

.github/workflows/test-external.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ jobs:
3030

3131
- uses: kurocha/setup-cpp@main
3232

33-
- name: Configure git
34-
run: |
35-
git config --global user.email "github-actions@github.com"
36-
git config --global user.name "GitHub Actions"
37-
3833
- name: Run tests
3934
timeout-minutes: 10
4035
run: bundle exec bake test:external

.github/workflows/test.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ jobs:
4444

4545
- uses: kurocha/setup-cpp@main
4646

47-
- name: Configure git
48-
run: |
49-
git config --global user.email "github-actions@github.com"
50-
git config --global user.name "GitHub Actions"
51-
5247
- name: Run tests
5348
timeout-minutes: 10
5449
run: bundle exec bake test

test/teapot/command/fetch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
before do
2222
system("git", "init", "-b", "main", chdir: thing_path)
2323
system("git", "add", "teapot.rb", chdir: thing_path)
24-
system("git", "commit", "-m", "Teapot file for testing", chdir: thing_path)
24+
system("git", "-c", "user.email=test@example.com", "-c", "user.name=Test", "commit", "-m", "Teapot file for testing", chdir: thing_path)
2525
end
2626

2727
it "should fetch repositories" do

0 commit comments

Comments
 (0)