File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1548,6 +1548,7 @@ def env_overrides
1548
1548
'GIT_WORK_TREE' => @git_work_dir ,
1549
1549
'GIT_INDEX_FILE' => @git_index_file ,
1550
1550
'GIT_SSH' => Git ::Base . config . git_ssh ,
1551
+ 'LC_ALL' => 'en_US.UTF-8'
1551
1552
}
1552
1553
end
1553
1554
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ class TestCommandLineEnvOverrides < Test::Unit::TestCase
12
12
'GIT_DIR' => git . lib . git_dir ,
13
13
'GIT_INDEX_FILE' => git . lib . git_index_file ,
14
14
'GIT_SSH' => nil ,
15
- 'GIT_WORK_TREE' => git . lib . git_work_dir
15
+ 'GIT_WORK_TREE' => git . lib . git_work_dir ,
16
+ 'LC_ALL' => 'en_US.UTF-8'
16
17
}
17
18
expected_command_line = [ expected_env , 'checkout' , { } ]
18
19
@@ -29,16 +30,15 @@ class TestCommandLineEnvOverrides < Test::Unit::TestCase
29
30
Git ::Base . config . git_ssh = 'ssh -i /path/to/key'
30
31
31
32
assert_command_line_eq ( expected_command_line_proc , include_env : true ) do |git |
32
- # Set the expected command line
33
-
34
33
expected_env = {
35
34
'GIT_DIR' => git . lib . git_dir ,
36
35
'GIT_INDEX_FILE' => git . lib . git_index_file ,
37
36
'GIT_SSH' => 'ssh -i /path/to/key' ,
38
- 'GIT_WORK_TREE' => git . lib . git_work_dir
37
+ 'GIT_WORK_TREE' => git . lib . git_work_dir ,
38
+ 'LC_ALL' => 'en_US.UTF-8'
39
39
}
40
-
41
40
expected_command_line = [ expected_env , 'checkout' , { } ]
41
+
42
42
git . checkout
43
43
end
44
44
ensure
You can’t perform that action at this time.
0 commit comments