upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git/handlers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git/handlers.rs')
-rw-r--r--src/git/handlers.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/git/handlers.rs b/src/git/handlers.rs
index 017eee4..13d6ba0 100644
--- a/src/git/handlers.rs
+++ b/src/git/handlers.rs
@@ -17,8 +17,9 @@ use super::subprocess::GitSubprocess;
17 17
18use crate::git::authorization::{authorize_push, parse_pushed_refs}; 18use crate::git::authorization::{authorize_push, parse_pushed_refs};
19use crate::git::sync::process_newly_available_git_data; 19use crate::git::sync::process_newly_available_git_data;
20use crate::nostr::builder::SharedDatabase; 20use crate::nostr::builder::{Nip34WritePolicy, SharedDatabase};
21use crate::purgatory::Purgatory; 21use crate::purgatory::Purgatory;
22use 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///
@@ -195,6 +196,8 @@ pub async fn handle_receive_pack(
195 purgatory: Arc<Purgatory>, 196 purgatory: Arc<Purgatory>,
196 git_data_path: &str, 197 git_data_path: &str,
197 git_protocol: Option<&str>, 198 git_protocol: Option<&str>,
199 write_policy: Arc<Nip34WritePolicy>,
200 rejected_events_index: Arc<RejectedEventsIndex>,
198) -> Result<Response<Full<Bytes>>, GitError> { 201) -> Result<Response<Full<Bytes>>, GitError> {
199 debug!("Handling receive-pack for {:?}", repo_path); 202 debug!("Handling receive-pack for {:?}", repo_path);
200 203
@@ -307,6 +310,8 @@ pub async fn handle_receive_pack(
307 Some(&relay), 310 Some(&relay),
308 &purgatory, 311 &purgatory,
309 git_data_path_buf, 312 git_data_path_buf,
313 Some(&write_policy),
314 Some(&rejected_events_index),
310 ) 315 )
311 .await 316 .await
312 { 317 {