File tree 2 files changed +1
-17
lines changed
2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -154,18 +154,6 @@ impl HookPaths {
154
154
let mut stdout =
155
155
String :: from_utf8_lossy ( & output. stdout ) . to_string ( ) ;
156
156
157
- if cfg ! ( windows) {
158
- const ANSI_CLEAR : & str = "\x1B [H\x1B [2J\x1B [3J" ;
159
-
160
- for text in [ & mut stderr, & mut stdout] {
161
- if let Some ( trimmed) =
162
- text. strip_suffix ( ANSI_CLEAR )
163
- {
164
- text. truncate ( trimmed. len ( ) ) ;
165
- }
166
- }
167
- }
168
-
169
157
Ok ( HookResult :: RunNotSuccessful {
170
158
code : output. status . code ( ) ,
171
159
stdout,
Original file line number Diff line number Diff line change @@ -428,11 +428,7 @@ exit 1
428
428
429
429
#[ test]
430
430
fn test_env_containing_path ( ) {
431
- const PATH_EXPORT : & str = if cfg ! ( windows) {
432
- "declare -x PATH="
433
- } else {
434
- "export PATH"
435
- } ;
431
+ const PATH_EXPORT : & str = "export PATH" ;
436
432
437
433
let ( _td, repo) = repo_init ( ) ;
438
434
You can’t perform that action at this time.
0 commit comments