Skip to content

"failed to clone file Git repo" error from Trufflehog #9

@RemakingEden

Description

@RemakingEden

Recently im running into an issue with the tool. Im not sure if its a change from Github, trufflehog or something ive done. This is happening on any repo's I try. Please let me know if you need any more details!

Details

  • trufflehog 3.91.1
  • MacBook Pro 16-inch, 2019 Version 15.7 (24G222)

Log

python force_push_scanner.py RemakingEden --db-file ./force_push_commits.sqlite3 --scan

======= Force-Push Summary for RemakingEden =======
Repos impacted : 2
Total commits  : 10

https://github.com/RemakingEden/dagger: 9 commits
https://github.com/RemakingEden/vue-realworld-example-app: 1 commits

Histogram:
 2023 | ▇ 1
 2024 | ▇▇▇▇▇▇▇▇▇ 9
 2025 | 
=================================


[>] Scanning repo: https://github.com/RemakingEden/dagger
  • Commit 028a5248956c7f98b794d8eb938687e2a68262ec
[!] trufflehog execution failed: Command failed (1): trufflehog git --branch 028a5248956c7f98b794d8eb938687e2a68262ec --since-commit 8055ad04bd78062e373b74519ef7b2805467d535 --no-update --json --only-verified file:///var/folders/5_/dmqb8smx48q1479r1lhxdbrw0000gn/T/gh-repo-k_njr0qv
{"level":"error","ts":"2025-11-28T11:52:11Z","logger":"trufflehog","msg":"error running scan","error":"failed to scan Git: error preparing repo: failed to clone file Git repo (file:///var/folders/5_/dmqb8smx48q1479r1lhxdbrw0000gn/T/gh-repo-k_njr0qv): could not clone repo: file:///var/folders/5_/dmqb8smx48q1479r1lhxdbrw0000gn/T/gh-repo-k_njr0qv, error executing git clone: exit status 128, remote: warning: lazy fetching disabled; some objects may not be available        \nremote: fatal: could not fetch 04072b546fef51236e461d81da37ec2a3eb277df from promisor remote        \nerror: git upload-pack: git-pack-objects died with error.\nfatal: git upload-pack: aborting due to possible repository corruption on the remote side.\nremote: aborting due to possible repository corruption on the remote side.\u0000\nfatal: early EOF\nfatal: fetch-pack: invalid index-pack output\n"} — skipping this repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions