mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 21:57:54 +02:00
fafdb8f635ci: Allow running iwyu ci in worktree (MarcoFalke)fab73e213dci: Reject unsafe execution of shell scripts (MarcoFalke) Pull request description: Currently, the iwyu CI fails to run in a git-worktree, or git-archive. This is due to the use of `git diff`. Fix this by force-initializing a dummy git repo with a single dummy commit. It may be possible to detect when `git diff` is not available in the directory, and only apply the fallback when needed, but the git history is not needed and it is easier to unconditionally apply the git init. ACKs for top commit: willcl-ark: reACKfafdb8f635hebasto: ACKfafdb8f635, I have reviewed the code and it looks OK. Tested on Fedora 43. sedited: ACKfafdb8f635Tree-SHA512: 572f1e2b9e215c2804095382498abb5b8636e3a49d5ba2a736b975e06afa2881d815b854a8a593d0f187c7c6b55034688e11f46d6814edfe7c29505197e80b18