git-gui: Make commit log messages end with a newline
[gitweb.git] / lib / commit.tcl
index 7099f5c6f79a72e75b83cfdc7432249476c492cb..1c0586c409b1700f250270a87f178f621989c32b 100644 (file)
@@ -184,7 +184,7 @@ You must stage at least 1 file before you can commit.
 
 A good commit message has the following format:
 
-- First line: Describe in one sentance what you did.
+- First line: Describe in one sentence what you did.
 - Second line: Blank
 - Remaining lines: Describe why this change is good.
 "]
@@ -253,7 +253,7 @@ proc commit_committree {fd_wt curHEAD msg} {
        global repo_config
 
        gets $fd_wt tree_id
-       if {$tree_id eq {} || [catch {close $fd_wt} err]} {
+       if {[catch {close $fd_wt} err]} {
                error_popup [strcat [mc "write-tree failed:"] "\n\n$err"]
                ui_status {Commit failed.}
                unlock_index
@@ -303,7 +303,7 @@ A rescan will be automatically started now.
                puts stderr [mc "warning: Tcl does not support encoding '%s'." $enc]
                fconfigure $msg_wt -encoding utf-8
        }
-       puts -nonewline $msg_wt $msg
+       puts $msg_wt $msg
        close $msg_wt
 
        # -- Create the commit.