ci: mount .git dir rw
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.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -31,7 +31,7 @@ def get_worktree_mounts(repo_root):
|
|||||||
main_gitdir = gitdir.parent.parent
|
main_gitdir = gitdir.parent.parent
|
||||||
return [
|
return [
|
||||||
f"--volume={gitdir}:{gitdir}",
|
f"--volume={gitdir}:{gitdir}",
|
||||||
f"--volume={main_gitdir}:{main_gitdir}:ro",
|
f"--volume={main_gitdir}:{main_gitdir}",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user