Skip to content

Commit

Permalink
improv: don't trim long commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
alex35mil authored and chrisgrieser committed Sep 25, 2024
1 parent a3b60ea commit 7a59d61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/tinygit/commands/commit-and-amend.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ local function processCommitMsg(commitMsg)

if #commitMsg > commitMaxLen then
u.notify("Commit Message too long.", "warn")
local shortenedMsg = commitMsg:sub(1, commitMaxLen)
return false, shortenedMsg
return false, commitMsg
elseif commitMsg == "" then
u.notify("Commit Message empty.", "warn")
return false, ""
Expand Down

0 comments on commit 7a59d61

Please sign in to comment.