I discovered that running this command (from test/lint/README.md
):
0DOCKER_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:
0fatal: 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!