diff options
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-x | git-gui.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh index daab7e44bb..36ba849cc8 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -1029,7 +1029,11 @@ proc read_ls_others {fd after} { set pck [split $buf_rlo "\0"] set buf_rlo [lindex $pck end] foreach p [lrange $pck 0 end-1] { - merge_state [encoding convertfrom $p] ?O + set p [encoding convertfrom $p] + if {[string index $p end] eq {/}} { + set p [string range $p 0 end-1] + } + merge_state $p ?O } rescan_done $fd buf_rlo $after } |