diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-02 14:45:19 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-03 13:41:16 -0500 |
commit | 0f740d2cf11e1a4d9ec4ae800db6c8d1adab4ad1 (patch) | |
tree | f79443ff1c81e8e9baf37385c3cdcf589251233d /ci-web/src | |
parent | d465b21d22cf797623f5200d099bf6c28643f1ee (diff) |
ci-web: Fix repository permissions
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'ci-web/src')
-rw-r--r-- | ci-web/src/bin/cgi.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ci-web/src/bin/cgi.rs b/ci-web/src/bin/cgi.rs index e0776c5..8ec072b 100644 --- a/ci-web/src/bin/cgi.rs +++ b/ci-web/src/bin/cgi.rs @@ -330,6 +330,11 @@ cgi::cgi_main! {|request: cgi::Request| -> cgi::Response { ktestrc.ci_output_dir)); } + unsafe { + git2::opts::set_verify_owner_validation(false) + .expect("set_verify_owner_validation should never fail"); + } + let repo = git2::Repository::open(&ktestrc.ci_linux_repo); if let Err(e) = repo { return error_response(format!("error opening repository {:?}: {}", ktestrc.ci_linux_repo, e)); |