Skip to content

Commit e27430e

Browse files
jlehmannspearce
authored andcommitted
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 <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 379f84b commit e27430e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mergetool.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ proc merge_load_stages {path cont} {
8888
set merge_stages(3) {}
8989
set merge_stages_buf {}
9090

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

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

0 commit comments

Comments
 (0)