File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ abstract class TestCase extends PHPUnitTestCase
15
15
private $ tempTestDir ;
16
16
private $ initialGlobalHookDir ;
17
17
18
- private $ shouldSignGpg ;
19
-
20
18
final public function setUp (): void
21
19
{
22
20
$ this ->initialGlobalHookDir = global_hook_dir ();
@@ -25,8 +23,7 @@ final public function setUp(): void
25
23
mkdir ($ this ->tempTestDir );
26
24
chdir ($ this ->tempTestDir );
27
25
shell_exec ('git init ' );
28
- $ this ->shouldSignGpg = shell_exec ('git config --global commit.gpgsign false ' );
29
- shell_exec ('git config --global commit.gpgsign false ' );
26
+ shell_exec ('git config commit.gpgsign false ' );
30
27
shell_exec (
'git config user.email "[email protected] " ' );
31
28
shell_exec ('git config user.name "Composer Git Hooks" ' );
32
29
@@ -39,7 +36,6 @@ final public function setUp(): void
39
36
40
37
final public function tearDown (): void
41
38
{
42
- shell_exec ('git config --global commit.gpgsign ' .$ this ->shouldSignGpg );
43
39
chdir ('.. ' );
44
40
self ::rmdir ($ this ->tempTestDir );
45
41
$ this ->restoreGlobalHookDir ();
You can’t perform that action at this time.
0 commit comments