Fix detection if last commit message was used

main
Julius Riegel 7 months ago
parent f34f803ac7
commit 742d2d4850

@ -756,9 +756,9 @@ def git_previous_message [] {
if ($logs | is-empty) { if ($logs | is-empty) {
return $msg_line return $msg_line
} }
let last_commit_msg = $logs | last | get message let last_commit_msg = $logs | last | get message | lines | first
if $last_commit_msg =~ $"^($msg_line)" { if $last_commit_msg == $msg_line {
return return
} }
return $msg_line return $msg_line

Loading…
Cancel
Save