From 742d2d48503988e1789456c7fe3111e41b7dae6f Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Fri, 3 May 2024 09:31:57 +0200 Subject: [PATCH] Fix detection if last commit message was used --- content/config/nushell/scripts/git.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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