Skip to content

[Bug]: jq: Argument list too long #19

@matbgn

Description

@matbgn

Bug Description

Trying to create the very first commit on fresh installation is not working. See all additional data below.

$ faff
Ollama service is running.
Model 'qwen2.5-coder:7b' is available.
Generating commit message with Ollama...
/usr/local/bin/faff: line 160: /usr/bin/jq: Argument list too long
Error: Ollama API returned an error: missing request body
Error: Failed to generate commit message
$ jq --version
jq-1.7

Steps to Reproduce

  1. curl -o faff.sh https://raw.githubusercontent.com/wimpysworld/faff/refs/heads/main/faff.sh
  2. sudo mv faff.sh /usr/local/bin/faff
  3. cd /path/to/dev-ongoing/
  4. git add .
  5. faff

Expected Behavior

A commit

Actual Behavior

Failed to generate commit message

Error Output

$ faff
Ollama service is running.
Model 'qwen2.5-coder:7b' is available.
Generating commit message with Ollama...
/usr/local/bin/faff: line 160: /usr/bin/jq: Argument list too long
Error: Ollama API returned an error: missing request body
Error: Failed to generate commit message

Git Diff (if relevant)

Operating System

Ubuntu 24.04.2 LTS

Shell Version

5.2.21(1)-release

Ollama Version

0.9.0-rc0

faff Version

??? latest I guess (installed today) but no commit hash or version tag is shown on faff --version

Ollama Model

qwen2.5-coder:7b

Additional Context

No response

Checklist

  • I have searched existing issues to avoid duplicates
  • I have provided all the requested information above
  • I can reproduce this issue consistently

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions