Module: Git::LibMonkeyPatch
- Included in:
- Lib
- Defined in:
- lib/monkey_patches.rb
Instance Method Summary collapse
-
#set_custom_git_env_variables ⇒ Object
Monkey patch set_custom_git_env_variables due to our ::Git::GitExecuteError handling.
Instance Method Details
#set_custom_git_env_variables ⇒ Object
Monkey patch set_custom_git_env_variables due to our ::Git::GitExecuteError handling.
We rescue on the GitExecuteError and proceed differently based on the output of git. This way makes code language-dependent, so here we ensure that Git gem throw git commands with the “C” language
7 8 9 10 |
# File 'lib/monkey_patches.rb', line 7 def set_custom_git_env_variables super ENV['LANG'] = 'C.UTF-8' end |