0

I'm enumerating every repository on a bitbucket server and running git log, from within python, in order to search through all commits / branches for a specific string.

Upon running git log seen below:

 git log -p --all -G 'a'

This error was returned:

error: object directory /var/atlassian/application-data/bitbucket/shared/data/repositories/1285/objects does not exist; check .git/objects/info/alternates.
error: refs/heads/ADA-6476-Add-cache-inspection-endpoint does not point to a valid object!
error: refs/heads/ADA-6649 does not point to a valid object!
error: refs/heads/feature/ADA-4921-performance-tuning does not point to a valid object!
error: refs/heads/feature/ADA-5138-in-memory-db-tests does not point to a valid object!
error: refs/heads/feature/ADA-5477-fund-breakdown does not point to a valid object!
error: refs/heads/feature/ADA-5494-new-benchmarks does not point to a valid object!
error: refs/heads/feature/ADA-5614-add-exposure-to-performance-breakdown does not point to a valid object!
error: refs/heads/feature/ADA-5629-support-tool does not point to a valid object!
error: refs/heads/feature/ADA-5941-test-data does not point to a valid object!
error: refs/heads/master does not point to a valid object!
fatal: bad object HEAD

Upon inspecting the Head file, here's what I get:

[me@serverhotname 1286]$ cat HEAD
ref: refs/heads/master

Is there any way I can work around this error, and still run git log in all other branches / commits? I can tolerate a misconfigured Git Repo / HEAD file, so long as I'm still able to run git log and search for strings in every branch or commit.

Many Thanks.

cokeburger
  • 17
  • 2

0 Answers0