[GH-ISSUE #32] Unexpected arg -c in git commit cmd #16

Closed
opened 2026-03-02 04:11:16 +03:00 by kerem · 0 comments
Owner

Originally created by @svarlamov on GitHub (Sep 27, 2025).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/32

Taken from VS Code git output logs (using git-ai for repro in terminal)

➜  testing-git git:(master) git-ai -c user.useConfigOnly=true commit --quiet --allow-empty-message --file README.md
error: unexpected argument '-c' found

  tip: to pass '-c' as a value, use '-- -c'

Usage: git-ai [ARGS]...

Also, it doesn't recognize this as a commit command for some reason (it shouldn't dive into proxy mode)

➜  testing-git git:(master) git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file README.md
[git-ai] proxying: git -c
On branch master
nothing to commit, working tree clean
➜  testing-git git:(master)
Originally created by @svarlamov on GitHub (Sep 27, 2025). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/32 Taken from VS Code git output logs (using `git-ai` for repro in terminal) ``` ➜ testing-git git:(master) git-ai -c user.useConfigOnly=true commit --quiet --allow-empty-message --file README.md error: unexpected argument '-c' found tip: to pass '-c' as a value, use '-- -c' Usage: git-ai [ARGS]... ``` Also, it doesn't recognize this as a commit command for some reason (it shouldn't dive into proxy mode) ``` ➜ testing-git git:(master) git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file README.md [git-ai] proxying: git -c On branch master nothing to commit, working tree clean ➜ testing-git git:(master) ```
kerem 2026-03-02 04:11:16 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#16
No description provided.