Skip to content

git commit -a produce an empty commit #4513

@cifvts

Description

@cifvts

Please review the Community Note before submitting

TruffleHog Version

3.90.11

Trace Output

Expected Behavior

A commit is produced with all the modified files

Actual Behavior

An empty commit is produced

Steps to Reproduce

Modify one or more files
pre-hook:

#!/usr/bin/env bash

branch=$(git branch --show-current)
if [ -n "$branch" ]; then
   branch_arg="--branch $branch"
else
   branch_arg=""
fi

bash -c "/opt/homebrew/bin/trufflehog git file://. --since-commit HEAD ${branch_arg} --only-verified --fail"

git commit -a

Environment

  • OS: MacOS Sequioa 15.7.1

Additional Context

Expected behavior works with version 3.90.8

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions