Skip to content

Commit 90e3480

Browse files
committed
fix: pull test succeeds when git attribution not configured
1 parent 362590b commit 90e3480

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/UnitTest/SourceControl/Git/Pull.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Method TestPull()
4747
do ..WriteFile(remoteDir_"/cls/TestGit/SampleClass1.cls","Class TestGit.SampleClass1 {}")
4848
do ..WriteFile(remoteDir_"/cls/TestGit/SampleClass2.cls","Class TestGit.SampleClass2 {}")
4949
do $zf(-100,"/SHELL","git","init",remoteDir)
50+
do $zf(-100,"/SHELL","git", "-C", remoteDir, "config", "user.email", "[email protected]")
51+
do $zf(-100,"/SHELL","git", "-C", remoteDir, "config", "user.name", "Unit Test")
5052
do $zf(-100,"/SHELL","git", "-C", remoteDir, "add", ".")
5153
do $zf(-100,"/SHELL","git", "-C", remoteDir, "commit", "-m", "initial commit in remote for unit test")
5254
// initialize local repo, cloning remote.

0 commit comments

Comments
 (0)