Skip to content

Commit 30e09e8

Browse files
committed
Improve test to avoid git clone
1 parent 1493b08 commit 30e09e8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/test-commit-email.rb

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
class TestCommitEmail < Test::Unit::TestCase
88
def setup
99
@ruby = Dir.mktmpdir
10-
git('clone', '--depth=3', 'https://github.com/ruby/ruby', @ruby)
10+
Dir.chdir(@ruby) do
11+
git('init')
12+
git('config', 'user.name', 'David Rodríguez')
13+
git('config', 'user.email', '[email protected]')
14+
git('commit', '--allow-empty', '-m', 'New repository initialized by cvs2svn.')
15+
git('commit', '--allow-empty', '-m', 'Initial revision')
16+
git('commit', '--allow-empty', '-m', 'version 1.0.0')
17+
end
1118

1219
@sendmail = File.join(Dir.mktmpdir, 'sendmail')
1320
File.write(@sendmail, <<~SENDMAIL)

0 commit comments

Comments
 (0)