Skip to content

fatal: detected dubious ownership in repository at '/checkout' #101438

Open
@nikic

Description

@nikic

Running sudo src/ci/docker/run.sh x86_64-gnu on Fedora 35, I get the following error:

Building rustbuild
    Finished dev [unoptimized] target(s) in 0.03s
fatal: detected dubious ownership in repository at '/checkout'
To add an exception for this directory, call:

	git config --global --add safe.directory /checkout
thread 'main' panicked at 'command did not execute successfully: "git" "rev-list" "--author=bors@rust-lang.org" "-n1" "--first-parent" "HEAD" "--" "/checkout/src/llvm-project" "/checkout/src/bootstrap/download-ci-llvm-stamp" "/checkout/src/version"
expected success, got: exit status: 128', native.rs:132:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:00:00

Not sure why this started happening now, it used to work fine...

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions