diff --git a/content/config/nushell/scripts/git.nu b/content/config/nushell/scripts/git.nu index 3aee86f..d1cd6e3 100644 --- a/content/config/nushell/scripts/git.nu +++ b/content/config/nushell/scripts/git.nu @@ -756,9 +756,9 @@ def git_previous_message [] { if ($logs | is-empty) { 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 $msg_line