fix(previewers): limit git log entries to prevent fork bomb (#3287)
Adds `--max-count=1000` flag to the `git log` command in the `git_branch_log` previewer. This prevents potential fork bombing issues with large repositories.
This commit is contained in:
@@ -802,6 +802,7 @@ previewers.git_branch_log = defaulter(function(opts)
|
||||
"--no-pager",
|
||||
"log",
|
||||
"--graph",
|
||||
"--max-count=1000", -- prevent fork bombing with large repos
|
||||
"--pretty=format:%h -%d %s (%cr)",
|
||||
"--abbrev-commit",
|
||||
"--date=relative",
|
||||
|
||||
Reference in New Issue
Block a user