Skip to content

Commit 2deb521

Browse files
committed
fix issue with color escape codes after recent update of git binaries
1 parent c85dd82 commit 2deb521

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,7 @@ def command(cmd, opts = [], chdir = true, redirect = '', &block)
945945
global_opts = []
946946
global_opts << "--git-dir=#{@git_dir}" if !@git_dir.nil?
947947
global_opts << "--work-tree=#{@git_work_dir}" if !@git_work_dir.nil?
948+
global_opts << ["-c", "color.ui=false"]
948949

949950
opts = [opts].flatten.map {|s| escape(s) }.join(' ')
950951

0 commit comments

Comments
 (0)