@@ -1064,19 +1064,19 @@ def test_hook_uses_shell_not_from_cwd(self, rw_dir, case):
1064
1064
shutil .copy (fixture_path ("polyglot" ), hook_path ("polyglot" , repo .git_dir ))
1065
1065
payload = Path (rw_dir , "payload.txt" )
1066
1066
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 " )
1080
1080
1081
1081
# @pytest.mark.xfail(
1082
1082
# type(_win_bash_status) is WinBashStatus.Absent,
0 commit comments