Browse Source

git-gui: Fix merge conflict display error when filename contains spaces

When a merge conflict occurs in a file with spaces in the filename,
git-gui showed wrongly "LOCAL: deleted".

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
maint
Jens Lehmann 16 years ago committed by Shawn O. Pearce
parent
commit
e27430e777
  1. 2
      lib/mergetool.tcl

2
lib/mergetool.tcl

@ -88,7 +88,7 @@ proc merge_load_stages {path cont} { @@ -88,7 +88,7 @@ proc merge_load_stages {path cont} {
set merge_stages(3) {}
set merge_stages_buf {}

set merge_stages_fd [eval git_read ls-files -u -z -- $path]
set merge_stages_fd [eval git_read ls-files -u -z -- {$path}]

fconfigure $merge_stages_fd -blocking 0 -translation binary -encoding binary
fileevent $merge_stages_fd readable [list read_merge_stages $merge_stages_fd $cont]

Loading…
Cancel
Save