mirror of
https://github.com/git/git.git
synced 2026-01-28 03:22:25 +00:00
Merge pull request #665 from yaras/fix-git-664
Fix initial git gui message encoding
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user