@@ -1064,19 +1064,19 @@ def test_hook_uses_shell_not_from_cwd(self, rw_dir, case):
10641064        shutil .copy (fixture_path ("polyglot" ), hook_path ("polyglot" , repo .git_dir ))
10651065        payload  =  Path (rw_dir , "payload.txt" )
10661066
1067-         if  type (_win_bash_status ) in  {WinBashStatus .Absent , WinBashStatus .WslNoDistro }:
1068-             # The real shell can't run, but the impostor should still not be used. 
1069-             with  self .assertRaises (HookExecutionError ):
1070-                 with  maybe_chdir :
1071-                     run_commit_hook ("polyglot" , repo .index )
1072-             self .assertFalse (payload .exists ())
1073-         else :
1074-              # The real shell should run, and not the impostor. 
1075-              with  maybe_chdir :
1076-                  run_commit_hook ("polyglot" , repo .index )
1077-              self .assertFalse (payload .exists ())
1078-              output  =  Path (rw_dir , "output.txt" ).read_text (encoding = "utf-8" )
1079-              self .assertEqual (output , "Ran intended hook.\n " )
1067+         #  if type(_win_bash_status) in {WinBashStatus.Absent, WinBashStatus.WslNoDistro}:
1068+         #      # The real shell can't run, but the impostor should still not be used.
1069+         #      with self.assertRaises(HookExecutionError):
1070+         #          with maybe_chdir:
1071+         #              run_commit_hook("polyglot", repo.index)
1072+         #      self.assertFalse(payload.exists())
1073+         #  else:
1074+         # The real shell should run, and not the impostor. 
1075+         with  maybe_chdir :
1076+             run_commit_hook ("polyglot" , repo .index )
1077+         self .assertFalse (payload .exists ())
1078+         output  =  Path (rw_dir , "output.txt" ).read_text (encoding = "utf-8" )
1079+         self .assertEqual (output , "Ran intended hook.\n " )
10801080
10811081    # @pytest.mark.xfail( 
10821082    #     type(_win_bash_status) is WinBashStatus.Absent, 
0 commit comments