diff --git a/scripts/src/ConverterCommand.php b/scripts/src/ConverterCommand.php
index d3be95ff66a38783da0318e75bcd49476d1728f9..6b099efbafd6943ec6688395640aedb2b05454f3 100644
--- a/scripts/src/ConverterCommand.php
+++ b/scripts/src/ConverterCommand.php
@@ -176,6 +176,8 @@ class ConverterCommand extends Command {
       static::executeCommand("git checkout {$this->core_target_branch} -- composer");
       static::executeCommand("git checkout {$this->core_target_branch} -- core/composer.json");
       static::executeCommand("git checkout {$this->core_target_branch} -- core/misc/cspell/dictionary.txt");
+      // Checkout original version of file to be patched.
+      static::executeCommand("git checkout {$this->core_target_branch} -- core/tests/Drupal/BuildTests/Composer/Template/ComposerProjectTemplatesTest.php");
 
       // Check out files that will be patched.
       static::executeCommand("git checkout {$this->core_target_branch} -- core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php");