Skip to content

Commit 37a05b5

Browse files
committed
Ignore ~/.gitconfig
I use `commit.gpgsign=true`, so I want to ignore it in tests.
1 parent 8f9b038 commit 37a05b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tool/test/test_commit_email.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ def setup
1313
git('init', '--initial-branch=master')
1414
git('config', 'user.name', 'Jóhän Grübél')
1515
git('config', 'user.email', 'johan@example.com')
16-
env = { 'GIT_AUTHOR_DATE' => '2025-10-08T12:00:00Z', 'TZ' => 'UTC' }
16+
env = {
17+
'GIT_AUTHOR_DATE' => '2025-10-08T12:00:00Z',
18+
'GIT_CONFIG_GLOBAL' => IO::NULL,
19+
'TZ' => 'UTC',
20+
}
1721
git('commit', '--allow-empty', '-m', 'New repository initialized by cvs2svn.', env:)
1822
git('commit', '--allow-empty', '-m', 'Initial revision', env:)
1923
git('commit', '--allow-empty', '-m', 'version 1.0.0', env:)

0 commit comments

Comments
 (0)