Skip to content

Commit

Permalink
Merge pull request #665 from yaras/fix-git-664
Browse files Browse the repository at this point in the history
Fix initial git gui message encoding
  • Loading branch information
Git for Windows Build Agent committed Oct 12, 2016
2 parents ef847b7 + f55cf56 commit fa13e91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-gui/git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1601,11 +1601,13 @@ proc run_prepare_commit_msg_hook {} {
if {[file isfile [gitdir MERGE_MSG]]} {
set pcm_source "merge"
set fd_mm [open [gitdir MERGE_MSG] r]
fconfigure $fd_mm -encoding utf-8
puts -nonewline $fd_pcm [read $fd_mm]
close $fd_mm
} elseif {[file isfile [gitdir SQUASH_MSG]]} {
set pcm_source "squash"
set fd_sm [open [gitdir SQUASH_MSG] r]
fconfigure $fd_sm -encoding utf-8
puts -nonewline $fd_pcm [read $fd_sm]
close $fd_sm
} else {
Expand Down

0 comments on commit fa13e91

Please sign in to comment.