diff options
Diffstat (limited to 'src/git/handlers.rs')
| -rw-r--r-- | src/git/handlers.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/git/handlers.rs b/src/git/handlers.rs index 28cb47f..f43cbb6 100644 --- a/src/git/handlers.rs +++ b/src/git/handlers.rs | |||
| @@ -17,8 +17,9 @@ use super::subprocess::GitSubprocess; | |||
| 17 | 17 | ||
| 18 | use crate::git::authorization::{authorize_push, parse_pushed_refs}; | 18 | use crate::git::authorization::{authorize_push, parse_pushed_refs}; |
| 19 | use crate::git::sync::process_newly_available_git_data; | 19 | use crate::git::sync::process_newly_available_git_data; |
| 20 | use crate::nostr::builder::SharedDatabase; | 20 | use crate::nostr::builder::{Nip34WritePolicy, SharedDatabase}; |
| 21 | use crate::purgatory::Purgatory; | 21 | use crate::purgatory::Purgatory; |
| 22 | use crate::sync::rejected_index::RejectedEventsIndex; | ||
| 22 | 23 | ||
| 23 | /// Handle GET /info/refs?service=git-{upload,receive}-pack | 24 | /// Handle GET /info/refs?service=git-{upload,receive}-pack |
| 24 | /// | 25 | /// |
| @@ -258,6 +259,8 @@ pub async fn handle_receive_pack( | |||
| 258 | purgatory: Arc<Purgatory>, | 259 | purgatory: Arc<Purgatory>, |
| 259 | git_data_path: &str, | 260 | git_data_path: &str, |
| 260 | git_protocol: Option<&str>, | 261 | git_protocol: Option<&str>, |
| 262 | write_policy: Arc<Nip34WritePolicy>, | ||
| 263 | rejected_events_index: Arc<RejectedEventsIndex>, | ||
| 261 | ) -> Result<Response<Full<Bytes>>, GitError> { | 264 | ) -> Result<Response<Full<Bytes>>, GitError> { |
| 262 | debug!("Handling receive-pack for {:?}", repo_path); | 265 | debug!("Handling receive-pack for {:?}", repo_path); |
| 263 | 266 | ||
| @@ -397,6 +400,8 @@ pub async fn handle_receive_pack( | |||
| 397 | Some(&relay), | 400 | Some(&relay), |
| 398 | &purgatory, | 401 | &purgatory, |
| 399 | git_data_path_buf, | 402 | git_data_path_buf, |
| 403 | Some(&write_policy), | ||
| 404 | Some(&rejected_events_index), | ||
| 400 | ) | 405 | ) |
| 401 | .await | 406 | .await |
| 402 | { | 407 | { |