mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-09 02:59:31 +08:00
Merge bitcoin/bitcoin#34430: ci: mount git directory as writable in linter
c8abac9941ci: mount .git dir rw (ci) Pull request description: On merges to master we set LINT_CI_SANITY_CHECK_COMMIT_SIG (when "GITHUB_REPOSITORY == bitcoin/bitcoin") which runs verify-commits.py. This requires write access to the .git directory. Make the mounted .git directory writable. This is currently not run on PR branches or locally which caused a miss during review. Ideally we can have the same checks running in PRs as on merges to master to avoid future discrepancies like this. ACKs for top commit: maflcko: lgtm ACKc8abac9941l0rinc: untested code review ACKc8abac9941Tree-SHA512: 7ae4f63227ecffe1dc9003454a7473d6d592550af2e1c899457f34a947e5604b04c13319fb8979f36789ae7787bed62066be60697d163ad5ebedde3fbe8ce45f
This commit is contained in:
@@ -31,7 +31,7 @@ def get_worktree_mounts(repo_root):
|
||||
main_gitdir = gitdir.parent.parent
|
||||
return [
|
||||
f"--volume={gitdir}:{gitdir}",
|
||||
f"--volume={main_gitdir}:{main_gitdir}:ro",
|
||||
f"--volume={main_gitdir}:{main_gitdir}",
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user