Merge branch 'js/blame-lib'
[gitweb.git] / builtin / commit.c
index 1d191a49f8499bc98c008f32ddef8f12f2cf7dda..da1ba4c86205ca55ae1880cb768b093b101bd85a 100644 (file)
@@ -1739,7 +1739,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
 
        if (verbose || /* Truncate the message just before the diff, if any. */
            cleanup_mode == CLEANUP_SCISSORS)
-               wt_status_truncate_message_at_cut_line(&sb);
+               strbuf_setlen(&sb, wt_status_locate_end(sb.buf, sb.len));
 
        if (cleanup_mode != CLEANUP_NONE)
                strbuf_stripspace(&sb, cleanup_mode == CLEANUP_ALL);