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
dscho committed May 20, 2016
2 parents 119cf22 + 1b893fc commit 77afc7d
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 @@ -1599,11 +1599,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 77afc7d

Please sign in to comment.