Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 70ba274

Browse files
authored
Fixes #819: Making GitTest idempotent. (#836)
1 parent f6f94dc commit 70ba274

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/phpunit/BltProject/GitTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ public function testGitPreCommitHook() {
7070
// Commits must be executed inside of new project directory.
7171
chdir($this->projectDirectory);
7272
$prefix = $this->config['project']['prefix'];
73-
// @todo Run this script without actual commit.
74-
$command = "git commit --amend -m '$prefix-123: This is a good commit.' 2>&1";
73+
$command = "./.git/hooks/pre-commit";
7574
$output = shell_exec($command);
7675
$this->assertNotContains('PHP Code Sniffer was not found', $output);
7776
$this->assertContains('Sniffing staged files via PHP Code Sniffer.', $output);

0 commit comments

Comments
 (0)