Skip to content

[Bug] Claude Code passes invalid --no-stat flag to git show command #13071

@eepp

Description

@eepp

Bug Description

In Claude Code 2.0.58, please know that Claude often tries git show with --no-stat, but there's no such option:

● Bash(git show HEAD --no-stat)
⎿  Error: Exit code 128
fatal: unrecognized argument: --no-stat

This can waste precious context.

Maybe this could be part of the system prompt or some tool config?

Just a suggestion.

Environment Info

  • Platform: linux
  • Terminal: kitty
  • Version: 2.0.58
  • Feedback ID: 83675796-99ee-4502-aeeb-cd20505f0696

Errors

[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions