Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

Commit 198fb93

Browse files
committed
fix(gitcommit): remove caret from log range
Verify .git directory and remove deps/mini.nvim before cloning.
1 parent 100c605 commit 198fb93

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lua/codecompanion/_extensions/gitcommit/tools/command.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ end
442442
---@param to_tag string Ending tag
443443
---@return string command
444444
function CommandBuilder.release_notes_log(from_tag, to_tag)
445-
local range = from_tag .. "^.." .. to_tag
445+
local range = from_tag .. ".." .. to_tag
446446
local escaped_range = vim.fn.shellescape(range)
447447
local format_str = shell_quote("%h\x01%s\x01%an\x01%ad")
448448
return "git log --pretty=format:" .. format_str .. " --date=short " .. escaped_range

mise.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ windows_default_inline_shell_args = "pwsh -NoProfile -Command"
1414
description = "Install test dependencies (mini.nvim)"
1515
run = """
1616
mkdir -p deps
17-
test -d deps/mini.nvim || git clone --depth 1 https://github.com/echasnovski/mini.nvim deps/mini.nvim
17+
test -d deps/mini.nvim/.git || (rm -rf deps/mini.nvim && git clone --depth 1 https://github.com/echasnovski/mini.nvim deps/mini.nvim)
1818
"""
1919
run_windows = """
2020
if (-not (Test-Path deps)) { New-Item -ItemType Directory -Path deps | Out-Null }
21-
if (-not (Test-Path deps/mini.nvim)) { git clone --depth 1 https://github.com/echasnovski/mini.nvim deps/mini.nvim }
21+
if (-not (Test-Path deps/mini.nvim/.git)) { Remove-Item -Recurse -Force deps/mini.nvim -ErrorAction SilentlyContinue; git clone --depth 1 https://github.com/echasnovski/mini.nvim deps/mini.nvim }
2222
"""
2323

2424
[tasks.test]

0 commit comments

Comments
 (0)