Skip to content

CI is currently broken on git diff: Not a git repository #5180

Closed
@viirya

Description

@viirya

Describe the bug

A few Github Actions jobs which run git diff --exit-code received a error currently:

warning: Not a git repository. Use --no-index to compare two paths outside a working tree
usage: git diff --no-index [<options>] <path> <path>

e.g. https://github.com/apache/arrow-datafusion/actions/runs/4093544289/jobs/7059343655, https://github.com/apache/arrow-datafusion/actions/runs/4092342002/jobs/7057053547

Found some similar issues like actions/checkout#363, but it was reported long time ago, not sure why suddenly this happens to datafusion CI.

To Reproduce

See action links.

Expected behavior

CI should work.
Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions