Issue Details

Number
29972
Title
qa: Support git worktrees when running the linters locally via Docker
Description
I discovered that running this command (from `test/lint/README.md`): ``` DOCKER_BUILDKIT=1 docker build -t bitcoin-linter --file "./ci/lint_imagefile" ./ && docker run --rm -v $(pwd):/bitcoin -it bitcoin-linter ``` doesn't work when trying to run it out of a git worktree: ``` fatal: not a git repository: /home/sdaftuar/bitcoin/.git/worktrees/2024-04-cluster-mempool-txgraph-rebased ``` (Though it did work for me when I tried checking out my branch in a regular git repo). I don't know anything about these scripts, but if there's an easy way to support worktrees I think it would be useful!
URL
https://github.com/bitcoin/bitcoin/issue/29972
Closed by
Back to List