Skip to content

Commit b66ec43

Browse files
Remove the post-checkout validation
Since the PreserveWorkingTreePlugin doesn't trigger the post-checkout hook anymore the code that checked that execution got "removed".
1 parent 016e911 commit b66ec43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration/PreserveWorkingTreePluginTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,17 @@ public function testMoveWorkingTreeChangesBeforeHook(): void
5858
// `git checkout`, we want to test our post-commit hook plugin creates a
5959
// file with the environment variables dumped to it and that the skip
6060
// post-checkout env var is one of them.
61+
62+
63+
// This is disabled for now, because the plugin doesn't trigger the post-checkout
64+
// hook anymore. This was changed because running a docker executed hook inside docker
65+
// is causing a crazy docker-hook-ception.
66+
/*
6167
$this->assertStringContainsString(
6268
PreserveWorkingTree::SKIP_POST_CHECKOUT_VAR,
6369
file_get_contents($repoPath . '/env.txt')
6470
);
71+
*/
6572

6673
// Look at `git status` again for the things we expect to see (or not).
6774
$statusResult = $this->runInShell(['git', 'status', '--porcelain=v1'], $repoPath);

0 commit comments

Comments
 (0)