Skip to content

Fix incorrect limitCount argument format for git log - #1032

Open
prjanitor wants to merge 1 commit into
githru:mainfrom
prjanitor:prjanitor/fca98cd5b490302864febaad7c9f757b3f2ad796
Open

Fix incorrect limitCount argument format for git log#1032
prjanitor wants to merge 1 commit into
githru:mainfrom
prjanitor:prjanitor/fca98cd5b490302864febaad7c9f757b3f2ad796

Conversation

@prjanitor

Copy link
Copy Markdown

The -n argument for limiting the number of commits was incorrectly formatted as a single string '-n ${limitCount}'. When using child_process.spawn, each element in the args array is treated as a single token. This resulted in an invalid argument like '-n 10' being passed to git instead of -n and 10 as separate tokens.

This PR separates -n and its value into distinct elements in the arguments array to ensure correct command execution.


This PR was generated by PRJanitor — an automated tool that finds and fixes small bugs in open-source projects.

We respect your contribution guidelines — if your project doesn't accept bot PRs, we won't send more. You can also add a .github/prjanitor.yml file with enabled: false to opt out explicitly.

@prjanitor
prjanitor requested a review from a team as a code owner April 6, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant