Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

insights: Commit Indexer returns errors on empty repos #37151

@chwarwick

Description

@chwarwick

When the insights commit indexer attempts to index commits for empty repos it logs an error

error fetching commits from gitserver repo_id: {REPO_ID}: git command [git log --format=format:%H%x00%aN%x00%aE%x00%at%x00%cN%x00%cE%x00%ct%x00%B%x00%P%x00 --after=2021-06-02T08:22:43Z --date-order] failed (output: \\\"\\\"): exit status 128\"\n","stream":"stderr"

This should not be an error and the index metadata can be marked as up to date. In addition the error log causes confusion when attempting to debug other issues.

Metadata

Metadata

Assignees

Labels

backendAny issue that needs work in the backend to closebugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.code-insightsIssues related to the Code Insights product

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions