upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/git/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git/sync.rs')
-rw-r--r--src/git/sync.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git/sync.rs b/src/git/sync.rs
index 949d8e1..2f43e6e 100644
--- a/src/git/sync.rs
+++ b/src/git/sync.rs
@@ -1310,7 +1310,7 @@ async fn process_purgatory_pr_events(
1310fn extract_owner_from_repo_path(repo_path: &Path, git_data_path: &Path) -> Option<String> { 1310fn extract_owner_from_repo_path(repo_path: &Path, git_data_path: &Path) -> Option<String> {
1311 let relative = repo_path.strip_prefix(git_data_path).ok()?; 1311 let relative = repo_path.strip_prefix(git_data_path).ok()?;
1312 let components: Vec<_> = relative.components().collect(); 1312 let components: Vec<_> = relative.components().collect();
1313 if components.len() >= 1 { 1313 if !components.is_empty() {
1314 components[0].as_os_str().to_str().map(|s| s.to_string()) 1314 components[0].as_os_str().to_str().map(|s| s.to_string())
1315 } else { 1315 } else {
1316 None 1316 None